audio engine loads all sounds

This commit is contained in:
Eric Rosenbaum committed 2017-01-30 10:50:28 -05:00
1 parent 4e57ab561d
commit 01e237a2d5
1 file changed
+2 -3
+2 -3
View File
@@ -82,10 +82,9 @@ RenderedTarget.prototype.initDrawable = function () {
this.audioPlayer = null;
if (this.runtime && this.runtime.audioEngine) {
if (this.isOriginal) {
this.sprite.audioPlayer = this.runtime.audioEngine.createPlayer();
this.sprite.audioPlayer.loadSounds(this.sprite.sounds);
this.runtime.audioEngine.loadSounds(this.sprite.sounds);
}
this.audioPlayer = this.sprite.audioPlayer;
this.audioPlayer = this.runtime.audioEngine.createPlayer();
}
};