Skip to content

Commit 84e6459

Browse files
Added hasEnded property to WebAudioSound class
1 parent 94e834f commit 84e6459

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ var WebAudioSound = new Class({
4949
* @property {number} pausedTime
5050
*/
5151
this.pausedTime = 0;
52+
/**
53+
* Used for keeping track when sound source playback has ended
54+
* so it's state can be updated accordingly.
55+
*
56+
* @private
57+
* @property {boolean} hasEnded
58+
*/
59+
this.hasEnded = false;
5260
this.muteNode.connect(this.volumeNode);
5361
this.volumeNode.connect(manager.destination);
5462
BaseSound.call(this, manager, key, config);

0 commit comments

Comments
 (0)