Skip to content

Commit 42ccc4c

Browse files
committed
Output additional SDL error info when applicable
1 parent 84e61e2 commit 42ccc4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound_sdl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ void sound_init() {
176176
SDL_PauseAudio(0);
177177
sdl_silence_level = obtained.silence;
178178
} else {
179-
printf("SDL Audio: Not Obtained\n");
179+
char *sdl_error_msg = SDL_GetError();
180+
printf("SDL Audio: Not Obtained\n%s\n", sdl_error_msg);
180181
}
181182
sample_start = sample_end = 0;
182183
}

0 commit comments

Comments
 (0)