mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-12 13:48:40 +00:00
Use audio compressor in AM/SSB receiver mode.
This commit is contained in:
parent
9f4c8929ac
commit
1cdeb1ca4e
@ -155,6 +155,7 @@ CPPSRC = main.cpp \
|
|||||||
rssi.cpp \
|
rssi.cpp \
|
||||||
rssi_dma.cpp \
|
rssi_dma.cpp \
|
||||||
rssi_thread.cpp \
|
rssi_thread.cpp \
|
||||||
|
audio_compressor.cpp \
|
||||||
audio_output.cpp \
|
audio_output.cpp \
|
||||||
audio_dma.cpp \
|
audio_dma.cpp \
|
||||||
audio_stats_collector.cpp \
|
audio_stats_collector.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);
|
channel_spectrum.feed(channel_out, channel_filter_pass_f, channel_filter_stop_f);
|
||||||
|
|
||||||
auto audio = demodulate(channel_out);
|
auto audio = demodulate(channel_out);
|
||||||
|
audio_compressor.execute_in_place(audio);
|
||||||
audio_output.write(audio);
|
audio_output.write(audio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "dsp_decimate.hpp"
|
#include "dsp_decimate.hpp"
|
||||||
#include "dsp_demodulate.hpp"
|
#include "dsp_demodulate.hpp"
|
||||||
|
#include "audio_compressor.hpp"
|
||||||
|
|
||||||
#include "audio_output.hpp"
|
#include "audio_output.hpp"
|
||||||
#include "spectrum_collector.hpp"
|
#include "spectrum_collector.hpp"
|
||||||
@ -64,7 +65,7 @@ private:
|
|||||||
bool modulation_ssb = false;
|
bool modulation_ssb = false;
|
||||||
dsp::demodulate::AM demod_am;
|
dsp::demodulate::AM demod_am;
|
||||||
dsp::demodulate::SSB demod_ssb;
|
dsp::demodulate::SSB demod_ssb;
|
||||||
|
FeedForwardCompressor audio_compressor;
|
||||||
AudioOutput audio_output;
|
AudioOutput audio_output;
|
||||||
|
|
||||||
SpectrumCollector channel_spectrum;
|
SpectrumCollector channel_spectrum;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user