mirror of
https://github.com/photonstorm/phaser
synced 2025-03-01 13:57:26 +00:00
Added addAudioSprite method which instantiates and returns NoAudioSound as audio sprite sound object with empty spritemap
This commit is contained in:
parent
7511c038b7
commit
cd00b5db79
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue