From efb664beb7884ff5f094c2014c94549b3de192ba Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 23 Jan 2021 21:00:41 +0100 Subject: [PATCH] Prevent echo --- assets/js/components/calls/window.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index dac502a0..8ea4004e 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -777,7 +777,10 @@ class CallWindow extends CustomEvents { const gain_node = audioContext.createGain(); gain_node.connect(audioContext.destination); - + + // Prevent echo + gain_node.disconnect(0) + const script_processor_analysis_node = audioContext.createScriptProcessor(2048, 1, 1); script_processor_analysis_node.connect(gain_node);