07e7add5a7
have exclusive access to /dev/dsp. This may cause lockups and all sort of problems. Fix it. o It is an X application, USE_X_PREFIX o Assign maintainership to submitter PR: 33722 Submitted by: John Merryweather Cooper <jmcoopr@webmail.bmi.net>
34 lines
747 B
C++
34 lines
747 B
C++
--- src/audio/AudioDriver.cpp Thu Nov 29 19:15:31 2001
|
|
+++ src/audio/AudioDriver.cpp.new Tue Jan 8 21:52:35 2002
|
|
@@ -43,11 +43,28 @@
|
|
#include "AudioDriver.h"
|
|
|
|
#if defined(HAVE_NETBSD)
|
|
-const char *AudioDriver::AUDIODEVICE[] = { "/dev/audio" };
|
|
-#else
|
|
+const char *AudioDriver::AUDIODEVICE[] = { "/dev/audio", "" };
|
|
+#elif defined(HAVE_FREEBSD)
|
|
+const char *AudioDriver::AUDIODEVICE[] = {
|
|
+ "/dev/dsp",
|
|
+ "/dev/audio",
|
|
+ "/dev/dsp0",
|
|
+ "/dev/audio0",
|
|
+ "/dev/dsp0.0",
|
|
+ "/dev/dsp0.1",
|
|
+ "/dev/dsp0.2",
|
|
+ "/dev/dsp0.3",
|
|
+ "/dev/audio0.0",
|
|
+ "/dev/audio0.1",
|
|
+ "/dev/audio0.2",
|
|
+ "/dev/audio0.3",
|
|
+ ""
|
|
+};
|
|
+#elif defined(HAVE_LINUX)
|
|
const char *AudioDriver::AUDIODEVICE[] = {
|
|
"/dev/dsp",
|
|
"/dev/sound/dsp",
|
|
+ ""
|
|
};
|
|
#endif
|
|
|