aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index 306f0022d..d17679969 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -277,6 +277,10 @@ static void syncAudioDeviceStates(void)
return;
for (i = audioOutputArraySize; --i >= 0; ) {
switch (audioDeviceStates[i]) {
+ case DEVICE_ON:
+ /* This will reopen only if the audio format changed */
+ openAudioOutput(&audioOutputArray[i], &audio_format);
+ break;
case DEVICE_ENABLE:
openAudioOutput(&audioOutputArray[i], &audio_format);
audioDeviceStates[i] = DEVICE_ON;