mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 09:09:29 +00:00
Un-static squelch history.
This commit is contained in:
@@ -48,7 +48,6 @@ void AudioOutput::write(
|
|||||||
hpf.execute_in_place(audio);
|
hpf.execute_in_place(audio);
|
||||||
deemph.execute_in_place(audio);
|
deemph.execute_in_place(audio);
|
||||||
|
|
||||||
static uint64_t audio_present_history = 0;
|
|
||||||
audio_present_history = (audio_present_history << 1) | (audio_present_now ? 1 : 0);
|
audio_present_history = (audio_present_history << 1) | (audio_present_now ? 1 : 0);
|
||||||
const bool audio_present = (audio_present_history != 0);
|
const bool audio_present = (audio_present_history != 0);
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ private:
|
|||||||
|
|
||||||
AudioStatsCollector audio_stats;
|
AudioStatsCollector audio_stats;
|
||||||
|
|
||||||
|
uint64_t audio_present_history = 0;
|
||||||
|
|
||||||
void fill_audio_buffer(const buffer_s16_t& audio);
|
void fill_audio_buffer(const buffer_s16_t& audio);
|
||||||
void feed_audio_stats(const buffer_s16_t& audio);
|
void feed_audio_stats(const buffer_s16_t& audio);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user