Skip to content

Commit 54f5e61

Browse files
Adding an item to rateUpdates every time setRate method is called
1 parent bc486da commit 54f5e61

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ var WebAudioSound = new Class({
173173
if (this.source) {
174174
this.source.playbackRate.setValueAtTime(this.totalRate, 0);
175175
}
176+
this.rateUpdates.push({
177+
time: this.manager.context.currentTime,
178+
rate: this.totalRate
179+
});
176180
}
177181
});
178182
/**

0 commit comments

Comments
 (0)