Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2408:fbc22422d73d
Initial work for #1
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 26 May 2016 10:07:15 +0100 |
parents | dde1f3254762 |
children | f595f5f5a7b9 |
comparison
equal
deleted
inserted
replaced
2396:dc13bd68ea34 | 2408:fbc22422d73d |
---|---|
1674 this.outputGain.gain.setValueAtTime(this.onplayGain,startTime); | 1674 this.outputGain.gain.setValueAtTime(this.onplayGain,startTime); |
1675 this.interfaceDOM.startPlayback(); | 1675 this.interfaceDOM.startPlayback(); |
1676 } else { | 1676 } else { |
1677 this.outputGain.gain.setValueAtTime(0.0,startTime); | 1677 this.outputGain.gain.setValueAtTime(0.0,startTime); |
1678 } | 1678 } |
1679 this.bufferNode.start(startTime); | 1679 this.bufferNode.start(startTime,this.specification.startTime || 0, this.specification.stopTime-this.specification.startTime || this.buffer.buffer.duration); |
1680 this.bufferNode.playbackStartTime = audioEngineContext.timer.getTestTime(); | 1680 this.bufferNode.playbackStartTime = audioEngineContext.timer.getTestTime(); |
1681 } | 1681 } |
1682 }; | 1682 }; |
1683 | 1683 |
1684 this.stop = function(stopTime) { | 1684 this.stop = function(stopTime) { |