[client] audio: display record indicator when necessary

This commit is contained in:
Quantum 2022-03-19 01:02:24 -04:00 committed by Geoffrey McRae
parent 9c8a8a1b44
commit e053c014f7

View File

@ -758,6 +758,9 @@ static void realRecordStart(int channels, int sampleRate, PSAudioFormat format)
// set the inital mute state // set the inital mute state
if (audio.audioDev->record.mute) if (audio.audioDev->record.mute)
audio.audioDev->record.mute(audio.playback.mute); audio.audioDev->record.mute(audio.playback.mute);
if (g_params.micShowIndicator)
app_showRecord(true);
} }
struct AudioFormat struct AudioFormat
@ -833,6 +836,9 @@ void audio_recordStop(void)
DEBUG_INFO("Microphone recording stopped"); DEBUG_INFO("Microphone recording stopped");
audio.audioDev->record.stop(); audio.audioDev->record.stop();
audio.record.started = false; audio.record.started = false;
if (g_params.micShowIndicator)
app_showRecord(false);
} }
void audio_recordVolume(int channels, const uint16_t volume[]) void audio_recordVolume(int channels, const uint16_t volume[])