瀏覽代碼

deal with spaces in file name

dds
Matt Bradshaw 6 年之前
父節點
當前提交
afeca2d0ff
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      extras/wav2sketch/wav2sketch.js

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

@@ -106,7 +106,7 @@ function processFile(file, fileName, sampleRateChoice, encodingChoice) {
var outputFileHolder = document.getElementById('outputFileHolder');
var downloadLink1 = document.createElement('a');
var downloadLink2 = document.createElement('a');
var formattedName = fileName.split('.')[0];
var formattedName = fileName.split('.')[0].split(' ').join('');
formattedName = formattedName.charAt(0).toUpperCase() + formattedName.slice(1).toLowerCase();
downloadLink1.href = generateOutputFile(generateCPPFile(fileName, formattedName, outputData, sampleRate, encoding));
downloadLink1.setAttribute('download', 'AudioSample' + formattedName + '.cpp');

Loading…
取消
儲存