added pausedTime field to WebAudioSound class

This commit is contained in:
Pavle Goloskokovic 2017-11-17 15:33:42 +01:00
parent f1a15571ff
commit f7f5bebd72

View file

@ -39,6 +39,13 @@ var WebAudioSound = new Class({
* @property {number} startTime * @property {number} startTime
*/ */
this.startTime = 0; this.startTime = 0;
/**
* Relative time when sound was paused.
* Corresponds to the seek value at the time when pause() method was called on this sound.
*
* @property {number} pausedTime
*/
this.pausedTime = 0;
this.muteNode.connect(this.volumeNode); this.muteNode.connect(this.volumeNode);
this.volumeNode.connect(manager.destination); this.volumeNode.connect(manager.destination);
if (config === void 0) { if (config === void 0) {