OS-agnostic log warning for invalid sound driver entry.
This commit is contained in:
@@ -13,14 +13,11 @@ namespace
|
|||||||
{
|
{
|
||||||
void WarnUserAboutBadSoundDriverEntry()
|
void WarnUserAboutBadSoundDriverEntry()
|
||||||
{
|
{
|
||||||
#if defined(_WIN32)
|
std::vector<RString> list = GetDefaultSoundDriverList();
|
||||||
LOG->Trace(" - Valid sound drivers for your OS are: WaveOut, DirectSound-sw, WDMKS, Null");
|
RString list_string = join( ",", list );
|
||||||
#elif defined(MACOSX)
|
RString trace = RString(" - Valid sound drivers for your OS are: ") + list_string;
|
||||||
LOG->Trace(" - Valid sound drivers for your OS are: AudioUnit, Null");
|
LOG->Trace("%s", trace.c_str());
|
||||||
#else // assume linux/unix if we reach this point
|
LOG->Trace(" - Make sure the driver entry is spelled correctly, and is supported on your OS.");
|
||||||
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.");
|
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user