Skip to content

Commit 0d1fb8a

Browse files
added startTime field to WebAudioSound class
1 parent 7a4939d commit 0d1fb8a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ var WebAudioSound = new Class({
3232
* @property {GainNode} volumeNode
3333
*/
3434
this.volumeNode = manager.context.createGain();
35+
/**
36+
* The time the previous playback started at based on
37+
* BaseAudioContext.currentTime value.
38+
*
39+
* @property {number} startTime
40+
*/
41+
this.startTime = 0;
3542
this.muteNode.connect(this.volumeNode);
3643
this.volumeNode.connect(manager.destination);
3744
if (config === void 0) {

0 commit comments

Comments
 (0)