Skip to content

Commit

Permalink
fix missing re-route
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
dragoncoder047 authored Sep 7, 2024
1 parent d526d69 commit da8500e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit da8500e

Please sign in to comment.