[client] audio: don't call record.mute if it's not supported

This commit is contained in:
Geoffrey McRae 2022-01-07 00:22:35 +11:00
parent 7f93bbd675
commit 52f06ec332

View File

@ -112,6 +112,7 @@ void audio_playbackStart(int channels, int sampleRate, PSAudioFormat format,
audio.playback.volume);
// set the inital mute state
if (audio.audioDev->playback.mute)
audio.audioDev->playback.mute(audio.playback.mute);
}
@ -201,6 +202,7 @@ void audio_recordStart(int channels, int sampleRate, PSAudioFormat format)
audio.playback.volume);
// set the inital mute state
if (audio.audioDev->record.mute)
audio.audioDev->record.mute(audio.playback.mute);
}