Browse Source

Merge pull request #384 from FrankBoesing/patch-1

wav2sketch.js Add PROGMEM to output array
dds
Paul Stoffregen 3 years ago
parent
commit
64413fa175
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      extras/wav2sketch/wav2sketch.js

+ 1
- 0
extras/wav2sketch/wav2sketch.js View File

@@ -222,6 +222,7 @@ function generateCPPFile(fileName, formattedName, audioData, sampleRate, encodin
out += '// Audio data converted from audio file by wav2sketch_js\n\n';
out += '#include "AudioSample' + formattedName + '.h"\n\n';
out += '// Converted from ' + fileName + ', using ' + sampleRate + ' Hz, 16 bit ' + encodingType + ' encoding\n';
out += 'PROGMEM\n';
out += 'const unsigned int AudioSample' + formattedName + '[' + audioData.length + '] = {\n';
out += formatAudioData(audioData) + '\n};';
return out;

Loading…
Cancel
Save