From eb5b2d7d301a141e75e15730149fc8fd5e9ab156 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sun, 10 Jan 2016 11:34:06 -0800 Subject: [PATCH] Fix broken audio stats when audio is muted. --- firmware/baseband/baseband_processor.cpp | 8 +++++++- firmware/baseband/baseband_processor.hpp | 2 +- firmware/baseband/proc_nfm_audio.cpp | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/firmware/baseband/baseband_processor.cpp b/firmware/baseband/baseband_processor.cpp index cfef43b2..d1786920 100644 --- a/firmware/baseband/baseband_processor.cpp +++ b/firmware/baseband/baseband_processor.cpp @@ -54,8 +54,14 @@ void BasebandProcessor::fill_audio_buffer(const buffer_s16_t& audio) { feed_audio_stats(audio); } -void BasebandProcessor::mute_audio() { +void BasebandProcessor::mute_audio(const buffer_s16_t& audio) { i2s::i2s0::tx_mute(); + + for(size_t i=0; i