From 1ac775071b120c1c77a9a80108aa5ad3ca240b6e Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Fri, 2 Sep 2022 20:48:46 +0200 Subject: [PATCH] Init cmixer with AUDIO_S16SYS --- src/SoundMixer/cmixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SoundMixer/cmixer.cpp b/src/SoundMixer/cmixer.cpp index 58b9cdf..b4cf72f 100644 --- a/src/SoundMixer/cmixer.cpp +++ b/src/SoundMixer/cmixer.cpp @@ -87,7 +87,7 @@ void cmixer::InitWithSDL() // Init SDL audio SDL_AudioSpec fmt = {}; fmt.freq = 44100; - fmt.format = AUDIO_S16; + fmt.format = AUDIO_S16SYS; fmt.channels = 2; fmt.samples = 1024; fmt.callback = [](void* udata, Uint8* stream, int size)