Skip to content

Commit bc486da

Browse files
Adding rateUpdates field to WebAudioSound class to keep track of all rate changes
1 parent 6e85e6a commit bc486da

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
@@ -55,6 +55,13 @@ var WebAudioSound = new Class({
5555
* @property {number} pausedTime
5656
*/
5757
this.pausedTime = 0;
58+
/**
59+
* An array where we keep track of all rate updates during playback.
60+
*
61+
* @private
62+
* @property {{ time: number, rate: number }[]} rateUpdates
63+
*/
64+
this.rateUpdates = [];
5865
/**
5966
* Used for keeping track when sound source playback has ended
6067
* so it's state can be updated accordingly.

0 commit comments

Comments
 (0)