audio engine loads all sounds

This commit is contained in:
Eric Rosenbaum 2017-01-30 10:50:28 -05:00
parent 4e57ab561d
commit 01e237a2d5

View file

@ -82,10 +82,9 @@ RenderedTarget.prototype.initDrawable = function () {
this.audioPlayer = null; this.audioPlayer = null;
if (this.runtime && this.runtime.audioEngine) { if (this.runtime && this.runtime.audioEngine) {
if (this.isOriginal) { if (this.isOriginal) {
this.sprite.audioPlayer = this.runtime.audioEngine.createPlayer(); this.runtime.audioEngine.loadSounds(this.sprite.sounds);
this.sprite.audioPlayer.loadSounds(this.sprite.sounds);
} }
this.audioPlayer = this.sprite.audioPlayer; this.audioPlayer = this.runtime.audioEngine.createPlayer();
} }
}; };