Skip to content

Commit cd00b5d

Browse files
Added addAudioSprite method which instantiates and returns NoAudioSound as audio sprite sound object with empty spritemap
1 parent 7511c03 commit cd00b5d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/sound/noaudio/NoAudioSoundManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ var NoAudioSoundManager = new Class({
1919
var sound = new NoAudioSound(this, key, config);
2020
this.sounds.push(sound);
2121
return sound;
22+
},
23+
addAudioSprite: function (key, config) {
24+
var sound = this.add(key, config);
25+
sound.spritemap = {};
26+
return sound;
2227
}
2328
});
2429
module.exports = NoAudioSoundManager;

0 commit comments

Comments
 (0)