1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/audio/xsidplay/files/patch-src:audio:linux:AudioDriver.cpp
Mario Sergio Fujikawa Ferreira 07e7add5a7 o xsidplay tries to access /dev/sound/dsp (linuxism) when it cannot
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>
2002-01-09 15:09:25 +00:00

34 lines
759 B
C++

--- src/audio/linux/AudioDriver.cpp Thu Nov 29 19:15:31 2001
+++ src/audio/linux/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