瀏覽代碼

oops, broke mono support while adding stereo support! fixed now

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

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

@@ -23,7 +23,7 @@ function processFile(file, fileName) {
context.decodeAudioData(file, function(buffer) {
var monoData = [];
if(buffer.numberOfChannels == 1) {
monoData = buffer.getChannelData(1);
monoData = buffer.getChannelData(0);
} else if(buffer.numberOfChannels == 2) {
var leftData = buffer.getChannelData(0);
var rightData = buffer.getChannelData(1);

Loading…
取消
儲存