瀏覽代碼

Merge pull request #384 from FrankBoesing/patch-1

wav2sketch.js Add PROGMEM to output array
dds
Paul Stoffregen 3 年之前
父節點
當前提交
64413fa175
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      extras/wav2sketch/wav2sketch.js

+ 1
- 0
extras/wav2sketch/wav2sketch.js 查看文件

@@ -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…
取消
儲存