From 9630e59552fd7729e35925c145fb5acbd6bd09dc Mon Sep 17 00:00:00 2001 From: ekeeke Date: Fri, 1 May 2020 09:55:22 +0200 Subject: [PATCH] [SDL] fixed sound format on big-endian platforms --- sdl/sdl1/main.c | 2 +- sdl/sdl2/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl/sdl1/main.c b/sdl/sdl1/main.c index fefcb5e..1ff4f19 100644 --- a/sdl/sdl1/main.c +++ b/sdl/sdl1/main.c @@ -74,7 +74,7 @@ static int sdl_sound_init() } as_desired.freq = SOUND_FREQUENCY; - as_desired.format = AUDIO_S16LSB; + as_desired.format = AUDIO_S16SYS; as_desired.channels = 2; as_desired.samples = SOUND_SAMPLES_SIZE; as_desired.callback = sdl_sound_callback; diff --git a/sdl/sdl2/main.c b/sdl/sdl2/main.c index 7e9b6ef..153fdad 100644 --- a/sdl/sdl2/main.c +++ b/sdl/sdl2/main.c @@ -77,7 +77,7 @@ static int sdl_sound_init() } as_desired.freq = SOUND_FREQUENCY; - as_desired.format = AUDIO_S16LSB; + as_desired.format = AUDIO_S16SYS; as_desired.channels = 2; as_desired.samples = SOUND_SAMPLES_SIZE; as_desired.callback = sdl_sound_callback;