From 115b90803c236da65e9e881cc28073e92ca78fcd Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 16 Oct 2024 03:07:45 +0200 Subject: [PATCH] Add audio init error output --- sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound.c b/sound.c index e15bd03..7902b17 100644 --- a/sound.c +++ b/sound.c @@ -14,6 +14,7 @@ unigi_type_error unigi_sound_init(void (* callback)(uint8_t *, size_t)) { desired.userdata = callback; if (SDL_OpenAudio(&desired, &unigi_platform_audio_spec) < 0) { + printf("Could not initialize audio: %s\n",SDL_GetError()); return 1; } else { SDL_PauseAudio(0);