mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Changed the order of defining startTime and previousTime properties
This commit is contained in:
parent
b2eef5b96e
commit
4038291373
1 changed files with 9 additions and 9 deletions
|
@ -27,15 +27,6 @@ var HTML5AudioSound = new Class({
|
|||
* @default null
|
||||
*/
|
||||
this.audio = null;
|
||||
/**
|
||||
* Audio tag's playback position recorded on previous
|
||||
* update method call. Set to 0 if sound is not playing.
|
||||
*
|
||||
* @private
|
||||
* @property {number} previousTime
|
||||
* @default 0
|
||||
*/
|
||||
this.previousTime = 0;
|
||||
/**
|
||||
* Timestamp as generated by the Request Animation Frame or SetTimeout
|
||||
* representing the time at which the delayed sound playback should start.
|
||||
|
@ -46,6 +37,15 @@ var HTML5AudioSound = new Class({
|
|||
* @default 0
|
||||
*/
|
||||
this.startTime = 0;
|
||||
/**
|
||||
* Audio tag's playback position recorded on previous
|
||||
* update method call. Set to 0 if sound is not playing.
|
||||
*
|
||||
* @private
|
||||
* @property {number} previousTime
|
||||
* @default 0
|
||||
*/
|
||||
this.previousTime = 0;
|
||||
this.duration = this.tags[0].duration;
|
||||
this.totalDuration = this.tags[0].duration;
|
||||
BaseSound.call(this, manager, key, config);
|
||||
|
|
Loading…
Reference in a new issue