mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-31 03:49:04 +00:00
Scanner: Added last locked frequencies list
Added back squelch to NFM receiver Scanner: cleanup Widgets: VU-meter cleanup
This commit is contained in:
@@ -76,8 +76,6 @@ void AudioOutput::write(
|
||||
void AudioOutput::on_block(
|
||||
const buffer_f32_t& audio
|
||||
) {
|
||||
bool audio_present;
|
||||
|
||||
if (do_processing) {
|
||||
const auto audio_present_now = squelch.execute(audio);
|
||||
|
||||
@@ -98,6 +96,10 @@ void AudioOutput::on_block(
|
||||
fill_audio_buffer(audio, audio_present);
|
||||
}
|
||||
|
||||
bool AudioOutput::is_squelched() {
|
||||
return ~audio_present;
|
||||
}
|
||||
|
||||
void AudioOutput::fill_audio_buffer(const buffer_f32_t& audio, const bool send_to_fifo) {
|
||||
std::array<int16_t, 32> audio_int;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user