Added addAudioSprite method which instantiates and returns NoAudioSound as audio sprite sound object with empty spritemap

This commit is contained in:
Pavle Goloskokovic 2018-01-20 20:11:48 +01:00
parent 7511c038b7
commit cd00b5db79

View file

@ -19,6 +19,11 @@ var NoAudioSoundManager = new Class({
var sound = new NoAudioSound(this, key, config);
this.sounds.push(sound);
return sound;
},
addAudioSprite: function (key, config) {
var sound = this.add(key, config);
sound.spritemap = {};
return sound;
}
});
module.exports = NoAudioSoundManager;