aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index 446eff40e..aba275f2f 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -145,6 +145,7 @@ int isCurrentAudioFormat(AudioFormat * audioFormat) {
int openAudioDevice(AudioFormat * audioFormat) {
if(!aoOutput->open || !isCurrentAudioFormat(audioFormat)) {
+ copyAudioFormat(&audio_format, audioFormat);
return openAudioOutput(aoOutput, audioFormat);
}