diff --git a/src/renderer/Voice.tsx b/src/renderer/Voice.tsx index d830c868..0ad64a14 100644 --- a/src/renderer/Voice.tsx +++ b/src/renderer/Voice.tsx @@ -101,8 +101,15 @@ function calculateVoiceAudio( panPos[0] = Math.min(999, Math.max(-999, panPos[0])); panPos[1] = Math.min(999, Math.max(-999, panPos[1])); if (other.inVent) { - gain.gain.value = 0; - return; + if (me.inVent) { + gain.gain.value = 1; + pan.positionX.setValueAtTime(panPos[0], audioContext.currentTime); + pan.positionY.setValueAtTime(panPos[1], audioContext.currentTime); + return; + } else { + gain.gain.value = 0; + return; + } } if (me.isDead && other.isDead) { gain.gain.value = 1;