From e169a46367dbe07934f29f419b325fdd6e7a41eb Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 11 Jan 2016 11:38:33 -0800 Subject: [PATCH] Un-static squelch history. --- firmware/baseband/audio_output.cpp | 1 - firmware/baseband/audio_output.hpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/baseband/audio_output.cpp b/firmware/baseband/audio_output.cpp index 824e21d6..426c19ee 100644 --- a/firmware/baseband/audio_output.cpp +++ b/firmware/baseband/audio_output.cpp @@ -48,7 +48,6 @@ void AudioOutput::write( hpf.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); const bool audio_present = (audio_present_history != 0); diff --git a/firmware/baseband/audio_output.hpp b/firmware/baseband/audio_output.hpp index b4b59487..1aec0478 100644 --- a/firmware/baseband/audio_output.hpp +++ b/firmware/baseband/audio_output.hpp @@ -48,6 +48,8 @@ private: AudioStatsCollector audio_stats; + uint64_t audio_present_history = 0; + void fill_audio_buffer(const buffer_s16_t& audio); void feed_audio_stats(const buffer_s16_t& audio); };