Backends: Fix some of the error handling and replaced some printf calls
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
5fc0f58525
commit
dcd4bcf1b2
5 changed files with 22 additions and 22 deletions
|
@ -72,7 +72,7 @@ BOOL AudioBackend_Init(void)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
puts("Available SDL2 audio drivers:");
|
||||
Backend_PrintInfo("Available SDL2 audio drivers:");
|
||||
|
||||
for (int i = 0; i < SDL_GetNumAudioDrivers(); ++i)
|
||||
puts(SDL_GetAudioDriver(i));
|
||||
|
@ -99,7 +99,7 @@ BOOL AudioBackend_Init(void)
|
|||
|
||||
SDL_PauseAudioDevice(device_id, 0);
|
||||
|
||||
printf("Selected SDL2 audio driver: %s\n", SDL_GetCurrentAudioDriver());
|
||||
Backend_PrintInfo("Selected SDL2 audio driver: %s", SDL_GetCurrentAudioDriver());
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue