Skip to content

Commit b9ec8f2

Browse files
Added method for stopping and removing loop buffer source
1 parent 15db2ba commit b9ec8f2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,17 @@ var WebAudioSound = new Class({
196196
this.playTime = 0;
197197
this.startTime = 0;
198198
},
199+
/**
200+
* Used internally to do what the name says.
201+
*
202+
* @private
203+
*/
204+
stopAndRemoveLoopBufferSource: function () {
205+
if (this.loopSource) {
206+
this.loopSource.stop();
207+
this.loopSource = null;
208+
}
209+
},
199210
/**
200211
* @protected
201212
*/

0 commit comments

Comments
 (0)