Browse Source

Add PROGMEM to output array

dds
Frank 3 years ago
parent
commit
1602348981
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