Skip to content

Commit f7f5beb

Browse files
added pausedTime field to WebAudioSound class
1 parent f1a1557 commit f7f5beb

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
@@ -39,6 +39,13 @@ var WebAudioSound = new Class({
3939
* @property {number} startTime
4040
*/
4141
this.startTime = 0;
42+
/**
43+
* Relative time when sound was paused.
44+
* Corresponds to the seek value at the time when pause() method was called on this sound.
45+
*
46+
* @property {number} pausedTime
47+
*/
48+
this.pausedTime = 0;
4249
this.muteNode.connect(this.volumeNode);
4350
this.volumeNode.connect(manager.destination);
4451
if (config === void 0) {

0 commit comments

Comments
 (0)