mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 10:09:25 -04:00
Scanner: Added last locked frequencies list
Added back squelch to NFM receiver Scanner: cleanup Widgets: VU-meter cleanup
This commit is contained in:
parent
bebec9ccf7
commit
38e14b1e30
18 changed files with 788 additions and 631 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue