OS-agnostic log warning for invalid sound driver entry.

This commit is contained in:
sukibaby
2025-05-23 13:43:52 -07:00
committed by teejusb
parent 8edc14febf
commit 7792a82e7a
+5 -8
View File
@@ -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<RString> 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