From 4c76aadf8039beb514d187416c4d51bfa8289085 Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Mon, 28 Aug 2023 17:22:48 +0200 Subject: [PATCH] Fix audio on big endian machines; see #56 --- src/platform_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_sdl.c b/src/platform_sdl.c index 6a07968..0191e38 100755 --- a/src/platform_sdl.c +++ b/src/platform_sdl.c @@ -390,7 +390,7 @@ int main(int argc, char *argv[]) { audio_device = SDL_OpenAudioDevice(NULL, 0, &(SDL_AudioSpec){ .freq = 44100, - .format = AUDIO_F32, + .format = AUDIO_F32SYS, .channels = 2, .samples = 1024, .callback = platform_audio_callback