From da8500ee39ad4b34fb5c5a41becb789ac2b534e2 Mon Sep 17 00:00:00 2001 From: dragoncoder047 <101021094+dragoncoder047@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:49:29 -0400 Subject: [PATCH] fix missing re-route #331 / #335 implemented the panning but I just noticed that if the audio is paused/stopped/seeked the audio will stop going through the pan node --- src/audio/play.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/play.ts b/src/audio/play.ts index 228a554f..686e6d06 100644 --- a/src/audio/play.ts +++ b/src/audio/play.ts @@ -208,7 +208,7 @@ export function play( newNode.playbackRate.value = oldNode.playbackRate.value; newNode.detune.value = oldNode.detune.value; newNode.onended = oldNode.onended; - newNode.connect(gainNode); + newNode.connect(panNode); return newNode; };