[Add] Display sound driver on init plox.
This commit is contained in:
parent
2cade50bc9
commit
566e96505f
@ -99,6 +99,7 @@ int sound_init(void) {
|
||||
int channels;
|
||||
SDL_version compile_version;
|
||||
const SDL_version* link_version;
|
||||
char device[PATH_MAX];
|
||||
|
||||
if(sound_disabled) return 0;
|
||||
|
||||
@ -114,9 +115,11 @@ int sound_init(void) {
|
||||
Mix_QuerySpec(&frequency, &format, &channels);
|
||||
MIX_VERSION(&compile_version);
|
||||
link_version = Mix_Linked_Version();
|
||||
SDL_AudioDriverName(device, PATH_MAX);
|
||||
DEBUG("SDL_Mixer: %d.%d.%d [compiled: %d.%d.%d]",
|
||||
compile_version.major, compile_version.minor, compile_version.patch,
|
||||
link_version->major, link_version->minor, link_version->patch);
|
||||
DEBUG("Driver: %s", device);
|
||||
DEBUG("Format: %d HZ %s", frequency, (channels == 2) ? "Sterio" : "Mono");
|
||||
DEBUG();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user