From 7b1d6985755278ac4b726d00bc7ca65adaef0f18 Mon Sep 17 00:00:00 2001 From: ha7ilm Date: Mon, 21 Mar 2016 11:08:59 +0100 Subject: [PATCH] Fixed filter envelope size --- htdocs/openwebrx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 3ac14ae..137d333 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -397,8 +397,8 @@ function demodulator_default_analog(offset_frequency,subtype) this.subtype=subtype; this.filter={ min_passband: 100, - high_cut_limit: audio_context.sampleRate/2, - low_cut_limit: -audio_context.sampleRate/2 + high_cut_limit: (audio_server_output_rate/2)-1, //audio_context.sampleRate/2, + low_cut_limit: (-audio_server_output_rate/2)+1 //-audio_context.sampleRate/2 }; //Subtypes only define some filter parameters and the mod string sent to server, //so you may set these parameters in your custom child class.