mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 23:39:29 -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);
|
feed_audio_stats(audio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BasebandProcessor::mute_audio() {
|
||||||
|
i2s::i2s0::tx_mute();
|
||||||
|
}
|
||||||
|
|
||||||
void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) {
|
void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) {
|
||||||
audio_stats.feed(
|
audio_stats.feed(
|
||||||
audio,
|
audio,
|
||||||
|
@ -45,6 +45,7 @@ protected:
|
|||||||
void feed_channel_stats(const buffer_c16_t& channel);
|
void feed_channel_stats(const buffer_c16_t& channel);
|
||||||
|
|
||||||
void fill_audio_buffer(const buffer_s16_t& audio);
|
void fill_audio_buffer(const buffer_s16_t& audio);
|
||||||
|
void mute_audio();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ChannelStatsCollector channel_stats;
|
ChannelStatsCollector channel_stats;
|
||||||
|
Loading…
Reference in New Issue
Block a user