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;