mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Added loopTime property to keep track of the time at which the sound loop source should actually start playback based on BaseAudioContext.currentTime value
This commit is contained in:
parent
34d0e4f7a6
commit
54de230ac4
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ var WebAudioSound = new Class({
|
|||
* @property {number} startTime
|
||||
*/
|
||||
this.startTime = 0;
|
||||
/**
|
||||
* The time at which the sound loop source should actually start playback.
|
||||
* Based on BaseAudioContext.currentTime value.
|
||||
*
|
||||
* @private
|
||||
* @property {number} loopTime
|
||||
*/
|
||||
this.loopTime = 0;
|
||||
/**
|
||||
* An array where we keep track of all rate updates during playback.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue