From d550dc679d69ec756f470768e23f8a180fd41f5a Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 16 Oct 2024 21:18:58 +0200 Subject: [PATCH] Define audio format --- sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound.c b/sound.c index 7902b17..d4d71c8 100644 --- a/sound.c +++ b/sound.c @@ -7,6 +7,7 @@ void unigi_platform_audio_callback(void * userdata, uint8_t * stream, int len) { unigi_type_error unigi_sound_init(void (* callback)(uint8_t *, size_t)) { SDL_AudioSpec desired; + desired.format = AUDIO_S16LSB; desired.freq = 44100; desired.channels = 2; desired.samples = 1024;