Fix FM squelch.

Forgot to recalibrate when adjusting normalization of float/audio signal path.
This commit is contained in:
Jared Boone 2016-02-16 11:32:38 -08:00
parent 0681f9c5df
commit 0c29308eb9

View File

@ -77,7 +77,7 @@ void NarrowbandFMAudio::configure(const NBFMConfigureMessage& message) {
channel_filter_pass_f = message.channel_filter.pass_frequency_normalized * channel_filter_input_fs;
channel_filter_stop_f = message.channel_filter.stop_frequency_normalized * channel_filter_input_fs;
channel_spectrum.set_decimation_factor(std::floor(channel_filter_output_fs / (channel_filter_pass_f + channel_filter_stop_f)));
audio_output.configure(message.audio_hpf_config, message.audio_deemph_config, 12288);
audio_output.configure(message.audio_hpf_config, message.audio_deemph_config, 0.5f);
configured = true;
}