From 4d0ae42d39d880b99226d068a161bc6f7427e88d Mon Sep 17 00:00:00 2001 From: Justin Young <62815737+jyoung4242@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:10:33 -0500 Subject: [PATCH] fix: Removed redundant playbackend event from playback resume (#2906) Removed from Sound.ts, line 349, the emitting of playbackend on resume, was creating multiple events on track end --- src/engine/Resources/Sound/Sound.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/engine/Resources/Sound/Sound.ts b/src/engine/Resources/Sound/Sound.ts index ec9ff00e1..a59b6cf79 100644 --- a/src/engine/Resources/Sound/Sound.ts +++ b/src/engine/Resources/Sound/Sound.ts @@ -346,7 +346,6 @@ export class Sound implements Audio, Loadable { // ensure we resume *current* tracks (if paused) for (const track of this._tracks) { resumed.push(track.play().then(() => { - this.events.emit('playbackend', new NativeSoundEvent(this, track as WebAudioInstance)); this._tracks.splice(this.getTrackId(track), 1); return true; }));