mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 07:22:33 -05:00
audio engine loads all sounds
This commit is contained in:
parent
4e57ab561d
commit
01e237a2d5
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue