comparison core.js @ 1218:72b2bb8526b3

Fix bugs #1628, #1483
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 23 Feb 2016 16:19:29 +0000
parents 8d9b3e45b8f2
children b62b545b78f4
comparison
equal deleted inserted replaced
1217:d5898c3ae2ba 1218:72b2bb8526b3
1372 this.interfaceDOM.startPlayback(); 1372 this.interfaceDOM.startPlayback();
1373 } else { 1373 } else {
1374 this.outputGain.gain.setValueAtTime(0.0,startTime); 1374 this.outputGain.gain.setValueAtTime(0.0,startTime);
1375 } 1375 }
1376 this.bufferNode.start(startTime); 1376 this.bufferNode.start(startTime);
1377 this.bufferNode.playbackStartTime = startTime; 1377 this.bufferNode.playbackStartTime = audioEngineContext.timer.getTestTime();
1378 } 1378 }
1379 }; 1379 };
1380 1380
1381 this.stop = function(stopTime) { 1381 this.stop = function(stopTime) {
1382 this.outputGain.gain.cancelScheduledValues(audioContext.currentTime); 1382 this.outputGain.gain.cancelScheduledValues(audioContext.currentTime);