Add mute_audio() function to baseband processor.

This commit is contained in:
Jared Boone 2016-01-04 09:06:17 -08:00
parent 8fb3ffaedc
commit ef6ae8ed94
2 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,10 @@ void BasebandProcessor::fill_audio_buffer(const buffer_s16_t& audio) {
feed_audio_stats(audio);
}
void BasebandProcessor::mute_audio() {
i2s::i2s0::tx_mute();
}
void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) {
audio_stats.feed(
audio,

View File

@ -45,6 +45,7 @@ protected:
void feed_channel_stats(const buffer_c16_t& channel);
void fill_audio_buffer(const buffer_s16_t& audio);
void mute_audio();
private:
ChannelStatsCollector channel_stats;