We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a259da commit db5002fCopy full SHA for db5002f
1 file changed
src/sound/BaseSoundManager.js
@@ -194,11 +194,12 @@ var BaseSoundManager = new Class({
194
* @param {string} key - Asset key for the sound.
195
* @param {string} spriteName - The name of the sound sprite to play.
196
* @param {ISoundConfig} [config] - An optional config object containing default sound settings.
197
+ * @returns {boolean} Whether the audio sprite sound started playing successfully.
198
*/
199
playAudioSprite: function (key, spriteName, config) {
200
var sound = this.addAudioSprite(key);
201
sound.once('ended', sound.destroy, sound);
- sound.play(spriteName, config);
202
+ return sound.play(spriteName, config);
203
},
204
/**
205
* Removes a sound from the sound manager.
0 commit comments