SDL: added some debugging info

This commit is contained in:
punkrockguy318 2010-03-03 18:26:09 +00:00
parent 70fed68de4
commit 268adc7dd5
2 changed files with 7 additions and 0 deletions

View File

@ -93,6 +93,10 @@ InitSound()
KillSound();
return(0);
}
char driverName[8];
SDL_AudioDriverName(driverName, 8);
fprintf(stderr, "Loading SDL sound with %s driver...\n", driverName);
// load configuration variables
g_config->getOption("SDL.SoundRate", &soundrate);

View File

@ -154,8 +154,11 @@ static void ShowUsage(char *prog)
#endif
puts("");
printf("Compiled with SDL version %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL );
SDL_Version* v = SDL_Linked_Version();
printf("Linked with SDL version %d.%d.%d\n", v->major, v->minor, v->patch);
#ifdef GTK_LITE
printf("Compiled with GTK version %d.%d.%d\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION );
//printf("Linked with GTK version %d.%d.%d\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION );
#endif
}