From e053c014f7c29c41cf8ec1fb7c4f9056a347dd0b Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 19 Mar 2022 01:02:24 -0400 Subject: [PATCH] [client] audio: display record indicator when necessary --- client/src/audio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/audio.c b/client/src/audio.c index b51da149..ee1bf395 100644 --- a/client/src/audio.c +++ b/client/src/audio.c @@ -758,6 +758,9 @@ static void realRecordStart(int channels, int sampleRate, PSAudioFormat format) // set the inital mute state if (audio.audioDev->record.mute) audio.audioDev->record.mute(audio.playback.mute); + + if (g_params.micShowIndicator) + app_showRecord(true); } struct AudioFormat @@ -833,6 +836,9 @@ void audio_recordStop(void) DEBUG_INFO("Microphone recording stopped"); audio.audioDev->record.stop(); audio.record.started = false; + + if (g_params.micShowIndicator) + app_showRecord(false); } void audio_recordVolume(int channels, const uint16_t volume[])