From 02c94d7644faff05936f6bd51e1cef2f67dd863c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 26 Mar 2021 17:02:40 +0300
Subject: [PATCH] xmp: change audio stream src_format from AUDIO_S16 to
AUDIO_S16SYS
Fixes https://github.com/libsdl-org/SDL_mixer/issues/306
---
src/codecs/music_xmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/codecs/music_xmp.c b/src/codecs/music_xmp.c
index 8536959..b5b321f 100644
--- a/src/codecs/music_xmp.c
+++ b/src/codecs/music_xmp.c
@@ -213,7 +213,7 @@ void *XMP_CreateFromRW(SDL_RWops *src, int freesrc)
}
music->volume = MIX_MAX_VOLUME;
- music->stream = SDL_NewAudioStream(AUDIO_S16, 2, music_spec.freq,
+ music->stream = SDL_NewAudioStream(AUDIO_S16SYS, 2, music_spec.freq,
music_spec.format, music_spec.channels, music_spec.freq);
if (!music->stream) {
goto e3;