audio: don't clear input_audio_format on openAudioDevice(NULL)
Commit 80a2c937
broke resume after pause: it cleared the
input_audio_format when it attempted to simplify a complicated
expression. Don't clear it, just assign input_audio_format if a new
format was specified.
This commit is contained in:
parent
5ea2e198f9
commit
07c9b62764
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user