Skip to content

Commit 1ec66f6

Browse files
Added previousTime property to keep track of audio tag's playback position recorded on previous update method call
1 parent 9ec4d9a commit 1ec66f6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ var HTML5AudioSound = new Class({
2727
* @default null
2828
*/
2929
this.audio = null;
30+
/**
31+
* Audio tag's playback position recorded on previous
32+
* update method call. Set to 0 if sound is not playing.
33+
*
34+
* @private
35+
* @property {number} previousTime
36+
* @default 0
37+
*/
38+
this.previousTime = 0;
3039
/**
3140
* Timestamp as generated by the Request Animation Frame or SetTimeout
3241
* representing the time at which the delayed sound playback should start.

0 commit comments

Comments
 (0)