[lib.audio-manager] fixed routing #2

This commit is contained in:
xdrm-brackets 2018-04-06 13:11:52 +02:00
parent f3a62a0a6d
commit 017903cd91
1 changed files with 4 additions and 3 deletions

View File

@ -133,9 +133,6 @@ export default class AudioManager{
/* (3) Connect presence reduction to 'ss' removal */ /* (3) Connect presence reduction to 'ss' removal */
this.filters.voice_presence.connect( this.filters.voice_sss ); 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 */ /* (2) Get first filter */
let first_filter = this.filters.voice_clarity; let first_filter = this.filters.voice_clarity;
let last_filter = this.filters.voice_sss;
/* (3) If unlink -> connect directly to NETWORK output */ /* (3) If unlink -> connect directly to NETWORK output */
if( unlink === true ) if( unlink === true )
@ -159,6 +157,9 @@ export default class AudioManager{
/* (4) If linking -> connect input to filter stack */ /* (4) If linking -> connect input to filter stack */
this.input.connect(first_filter); this.input.connect(first_filter);
/* (5) If linking -> connect stack end to network.out */
last_filter.connect(this.network.out);
} }