Use audio compressor in AM/SSB receiver mode.

This commit is contained in:
Jared Boone 2016-02-13 11:19:32 -08:00
parent 9f4c8929ac
commit 1cdeb1ca4e
3 changed files with 4 additions and 1 deletions

View File

@ -155,6 +155,7 @@ CPPSRC = main.cpp \
rssi.cpp \
rssi_dma.cpp \
rssi_thread.cpp \
audio_compressor.cpp \
audio_output.cpp \
audio_dma.cpp \
audio_stats_collector.cpp \

View File

@ -40,6 +40,7 @@ void NarrowbandAMAudio::execute(const buffer_c8_t& buffer) {
channel_spectrum.feed(channel_out, channel_filter_pass_f, channel_filter_stop_f);
auto audio = demodulate(channel_out);
audio_compressor.execute_in_place(audio);
audio_output.write(audio);
}

View File

@ -26,6 +26,7 @@
#include "dsp_decimate.hpp"
#include "dsp_demodulate.hpp"
#include "audio_compressor.hpp"
#include "audio_output.hpp"
#include "spectrum_collector.hpp"
@ -64,7 +65,7 @@ private:
bool modulation_ssb = false;
dsp::demodulate::AM demod_am;
dsp::demodulate::SSB demod_ssb;
FeedForwardCompressor audio_compressor;
AudioOutput audio_output;
SpectrumCollector channel_spectrum;