mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-28 10:52:02 +00:00
[client] audio: restore microphone volume and mute state
This commit is contained in:
@@ -761,12 +761,12 @@ static void realRecordStart(int channels, int sampleRate, PSAudioFormat format)
|
|||||||
// if a volume level was stored, set it before we return
|
// if a volume level was stored, set it before we return
|
||||||
if (audio.record.volumeChannels)
|
if (audio.record.volumeChannels)
|
||||||
audio.audioDev->record.volume(
|
audio.audioDev->record.volume(
|
||||||
audio.playback.volumeChannels,
|
audio.record.volumeChannels,
|
||||||
audio.playback.volume);
|
audio.record.volume);
|
||||||
|
|
||||||
// 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.record.mute);
|
||||||
|
|
||||||
if (g_params.micShowIndicator)
|
if (g_params.micShowIndicator)
|
||||||
app_showRecord(true);
|
app_showRecord(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user