diff --git a/src/audio.c b/src/audio.c index f97943400..ce62df46d 100644 --- a/src/audio.c +++ b/src/audio.c @@ -301,9 +301,7 @@ int openAudioDevice(const struct audio_format *audioFormat) if (!audioOutputArray) return -1; - if (audioFormat == NULL) - audio_format_clear(&input_audio_format); - else + if (audioFormat != NULL) input_audio_format = *audioFormat; syncAudioDeviceStates();