Pārlūkot izejas kodu

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

dds
Matt Bradshaw pirms 6 gadiem
vecāks
revīzija
b2c230c577
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      extras/wav2sketch/wav2sketch.js

+ 1
- 1
extras/wav2sketch/wav2sketch.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt