From 7932c1af6f66b1ed6ff94bd0eedaaa79b506eb8a Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 27 May 2025 18:30:55 +0200 Subject: [PATCH] Print the current SDL_mixer version when initializing the sound system --- src/sdl/mixer_sound.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index 647958653..fbdf6d005 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -213,7 +213,17 @@ void I_StartupSound(void) // call to start audio failed -- we do not have it return; } - + + SDL_version SDLmixcompiled; + const SDL_version *SDLmixlinked; + SDL_MIXER_VERSION(&SDLmixcompiled) + SDLmixlinked = Mix_Linked_Version(); + + I_OutputMsg("Compiled for SDL_mixer version: %d.%d.%d\n", + SDLmixcompiled.major, SDLmixcompiled.minor, SDLmixcompiled.patch); + I_OutputMsg("Linked with SDL_mixer version: %d.%d.%d\n", + SDLmixlinked->major, SDLmixlinked->minor, SDLmixlinked->patch); + #ifdef HAVE_OPENMPT CONS_Printf("libopenmpt version: %s\n", openmpt_get_string("library_version")); CONS_Printf("libopenmpt build date: %s\n", openmpt_get_string("build"));