We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5790fe9 commit 5f56d03Copy full SHA for 5f56d03
1 file changed
v3/src/sound/BaseSoundManager.js
@@ -134,7 +134,14 @@ var BaseSoundManager = new Class({
134
sound.events.once('SOUND_ENDED', sound.destroy.bind(sound));
135
sound.play(spriteName, config);
136
},
137
- remove: NOOP,
+ remove: function (sound) {
138
+ var index = this.sounds.indexOf(sound);
139
+ if (index !== -1) {
140
+ this.sounds.splice(index, 1);
141
+ return true;
142
+ }
143
+ return false;
144
+ },
145
removeByKey: NOOP,
146
pauseAll: function () {
147
this.sounds.forEach(function (sound) {
0 commit comments