浏览代码

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);

正在加载...
取消
保存