We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9d0509 commit bda9c0dCopy full SHA for bda9c0d
1 file changed
src/renderer/Voice.tsx
@@ -101,8 +101,15 @@ function calculateVoiceAudio(
101
panPos[0] = Math.min(999, Math.max(-999, panPos[0]));
102
panPos[1] = Math.min(999, Math.max(-999, panPos[1]));
103
if (other.inVent) {
104
- gain.gain.value = 0;
105
- return;
+ if (me.inVent) {
+ gain.gain.value = 1;
106
+ pan.positionX.setValueAtTime(panPos[0], audioContext.currentTime);
107
+ pan.positionY.setValueAtTime(panPos[1], audioContext.currentTime);
108
+ return;
109
+ } else {
110
+ gain.gain.value = 0;
111
112
+ }
113
}
114
if (me.isDead && other.isDead) {
115
gain.gain.value = 1;
0 commit comments