mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Add mute_audio() function to baseband processor.
This commit is contained in:
parent
8fb3ffaedc
commit
ef6ae8ed94
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user