phaser
phaser copied to clipboard
Audio and SpriteAudio are internally the same
By looking at the cache, Audio
and SpriteAudio
are stored the same way. I suggest to add a flag to know what type of element is inserted. That should make sound.addAudioSprite
be unifiable with sound.add
, making sound.add
branching depending on that flag