Skip to content

Commit 54de230

Browse files
Added loopTime property to keep track of the time at which the sound loop source should actually start playback based on BaseAudioContext.currentTime value
1 parent 34d0e4f commit 54de230

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ var WebAudioSound = new Class({
6262
* @property {number} startTime
6363
*/
6464
this.startTime = 0;
65+
/**
66+
* The time at which the sound loop source should actually start playback.
67+
* Based on BaseAudioContext.currentTime value.
68+
*
69+
* @private
70+
* @property {number} loopTime
71+
*/
72+
this.loopTime = 0;
6573
/**
6674
* An array where we keep track of all rate updates during playback.
6775
*

0 commit comments

Comments
 (0)