Prevent echo

This commit is contained in:
Pierre HUBERT 2021-01-23 21:00:41 +01:00
parent e5c4a87a4f
commit efb664beb7

View File

@ -777,7 +777,10 @@ class CallWindow extends CustomEvents {
const gain_node = audioContext.createGain(); const gain_node = audioContext.createGain();
gain_node.connect(audioContext.destination); gain_node.connect(audioContext.destination);
// Prevent echo
gain_node.disconnect(0)
const script_processor_analysis_node = audioContext.createScriptProcessor(2048, 1, 1); const script_processor_analysis_node = audioContext.createScriptProcessor(2048, 1, 1);
script_processor_analysis_node.connect(gain_node); script_processor_analysis_node.connect(gain_node);