From 017903cd918541841a49453981d3457e77e8c1fd Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 6 Apr 2018 13:11:52 +0200 Subject: [PATCH] [lib.audio-manager] fixed routing #2 --- webpack/lib/audio-manager.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webpack/lib/audio-manager.js b/webpack/lib/audio-manager.js index 6d46599..76f31ae 100644 --- a/webpack/lib/audio-manager.js +++ b/webpack/lib/audio-manager.js @@ -133,9 +133,6 @@ export default class AudioManager{ /* (3) Connect presence reduction to 'ss' removal */ this.filters.voice_presence.connect( this.filters.voice_sss ); - /* (4) Connect last filter to NETWORK output */ - this.filters.voice_sss.connect(this.network.out); - } @@ -151,6 +148,7 @@ export default class AudioManager{ /* (2) Get first filter */ let first_filter = this.filters.voice_clarity; + let last_filter = this.filters.voice_sss; /* (3) If unlink -> connect directly to NETWORK output */ if( unlink === true ) @@ -159,6 +157,9 @@ export default class AudioManager{ /* (4) If linking -> connect input to filter stack */ this.input.connect(first_filter); + /* (5) If linking -> connect stack end to network.out */ + last_filter.connect(this.network.out); + }