From 7792a82e7a830979dc67ce84d47559f90279b512 Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Fri, 23 May 2025 13:43:52 -0700 Subject: [PATCH] OS-agnostic log warning for invalid sound driver entry. --- src/arch/Sound/RageSoundDriver.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/arch/Sound/RageSoundDriver.cpp b/src/arch/Sound/RageSoundDriver.cpp index 0e68355980..38ddd19416 100644 --- a/src/arch/Sound/RageSoundDriver.cpp +++ b/src/arch/Sound/RageSoundDriver.cpp @@ -13,14 +13,11 @@ namespace { void WarnUserAboutBadSoundDriverEntry() { - #if defined(_WIN32) - LOG->Trace(" - Valid sound drivers for your OS are: WaveOut, DirectSound-sw, WDMKS, Null"); - #elif defined(MACOSX) - LOG->Trace(" - Valid sound drivers for your OS are: AudioUnit, Null"); - #else // assume linux/unix if we reach this point - LOG->Trace(" - Valid sound drivers for your OS are: ALSA-sw, OSS, JACK, Pulse, Null"); - #endif - LOG->Trace(" - Make sure the driver entry is spelled correctly, and is supported on your OS."); + std::vector list = GetDefaultSoundDriverList(); + RString list_string = join( ",", list ); + RString trace = RString(" - Valid sound drivers for your OS are: ") + list_string; + LOG->Trace("%s", trace.c_str()); + LOG->Trace(" - Make sure the driver entry is spelled correctly, and is supported on your OS."); } } // namespace