diff --git a/firmware/baseband/proc_am_audio.cpp b/firmware/baseband/proc_am_audio.cpp index ad655f54..dc94b7b1 100644 --- a/firmware/baseband/proc_am_audio.cpp +++ b/firmware/baseband/proc_am_audio.cpp @@ -39,8 +39,13 @@ void NarrowbandAMAudio::execute(const buffer_c8_t& buffer) { feed_channel_stats(channel_out); channel_spectrum.feed(channel_out, channel_filter_pass_f, channel_filter_stop_f); - auto audio = demod.execute(channel_out, audio_buffer); - audio_output.write(audio); + if( false ) { + auto audio = demod_am.execute(channel_out, audio_buffer); + audio_output.write(audio); + } else { + auto audio = demod_ssb.execute(channel_out, audio_buffer); + audio_output.write(audio); + } } void NarrowbandAMAudio::on_message(const Message* const message) { diff --git a/firmware/baseband/proc_am_audio.hpp b/firmware/baseband/proc_am_audio.hpp index 07406aa2..a695df3d 100644 --- a/firmware/baseband/proc_am_audio.hpp +++ b/firmware/baseband/proc_am_audio.hpp @@ -61,7 +61,8 @@ private: uint32_t channel_filter_pass_f = 0; uint32_t channel_filter_stop_f = 0; - dsp::demodulate::AM demod; + dsp::demodulate::AM demod_am; + dsp::demodulate::SSB demod_ssb; AudioOutput audio_output;