diff --git a/firmware/baseband/Makefile b/firmware/baseband/Makefile index 5e971115..fedacf9c 100755 --- a/firmware/baseband/Makefile +++ b/firmware/baseband/Makefile @@ -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 \ diff --git a/firmware/baseband/proc_am_audio.cpp b/firmware/baseband/proc_am_audio.cpp index bb207102..0a4b5faf 100644 --- a/firmware/baseband/proc_am_audio.cpp +++ b/firmware/baseband/proc_am_audio.cpp @@ -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); } diff --git a/firmware/baseband/proc_am_audio.hpp b/firmware/baseband/proc_am_audio.hpp index 226720e2..af94c416 100644 --- a/firmware/baseband/proc_am_audio.hpp +++ b/firmware/baseband/proc_am_audio.hpp @@ -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;