comparison js/core.js @ 2434:8931ca5beb03

Minor #12
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 02 Jun 2016 14:02:05 +0100
parents 037cf4e2b2d6
children 7bafbd5441ea 0ff4a9925597
comparison
equal deleted inserted replaced
2433:037cf4e2b2d6 2434:8931ca5beb03
1671 event.currentTarget.owner.stop(audioContext.currentTime+1); 1671 event.currentTarget.owner.stop(audioContext.currentTime+1);
1672 } 1672 }
1673 }; 1673 };
1674 if (!audioEngineContext.loopPlayback || !audioEngineContext.synchPlayback) { 1674 if (!audioEngineContext.loopPlayback || !audioEngineContext.synchPlayback) {
1675 this.metric.startListening(audioEngineContext.timer.getTestTime()); 1675 this.metric.startListening(audioEngineContext.timer.getTestTime());
1676 this.outputGain.gain.setValueAtTime(this.onplayGain,startTime); 1676 this.outputGain.gain.setValueAtTime(this.onplayGain,0.0);
1677 this.interfaceDOM.startPlayback(); 1677 this.interfaceDOM.startPlayback();
1678 } else { 1678 } else {
1679 this.outputGain.gain.setValueAtTime(0.0,startTime); 1679 this.outputGain.gain.setValueAtTime(0.0,startTime);
1680 } 1680 }
1681 this.bufferNode.start(startTime,this.specification.startTime || 0, this.specification.stopTime-this.specification.startTime || this.buffer.buffer.duration); 1681 this.bufferNode.start(startTime,this.specification.startTime || 0, this.specification.stopTime-this.specification.startTime || this.buffer.buffer.duration);