mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-16 10:20:52 -04:00
Fix broken audio stats when audio is muted.
This commit is contained in:
parent
4ea84301c6
commit
eb5b2d7d30
3 changed files with 9 additions and 3 deletions
|
@ -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<audio.count; i++) {
|
||||
audio.p[i] = 0;
|
||||
}
|
||||
|
||||
feed_audio_stats(audio);
|
||||
}
|
||||
|
||||
void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue