From 822a7fea5454e3394202bbe7a4d6a00627540cea Mon Sep 17 00:00:00 2001 From: Sevan Janiyan Date: Mon, 15 May 2023 03:08:58 +0100 Subject: [PATCH] Use the audio format native to host AUDIO_S16 defaults to little endian format which causes issues when running on big endian systems. Use AUDIO_S16SYS instead which sets to whatever endian the system uxn is being built on is. --- src/uxnemu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxnemu.c b/src/uxnemu.c index f1f3966..35206a5 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -210,7 +210,7 @@ init(void) SDL_AudioSpec as; SDL_zero(as); as.freq = SAMPLE_FREQUENCY; - as.format = AUDIO_S16; + as.format = AUDIO_S16SYS; as.channels = 2; as.callback = audio_callback; as.samples = 512;