mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.5 KiB

diff -ru xcdroast-0.98alpha14.orig/src/io.c xcdroast-0.98alpha14/src/io.c
--- xcdroast-0.98alpha14.orig/src/io.c 2003-05-29 15:14:42.000000000 +0200
+++ xcdroast-0.98alpha14/src/io.c 2003-06-14 18:23:33.000000000 +0200
@@ -1698,11 +1698,11 @@
#if defined(linux) || defined(__FreeBSD__)
/* for linux check if /dev/dsp or /dev/dsp1 exist */
- if (stat("/dev/dsp",&buf) == 0) {
- dsp = g_list_append(dsp,"/dev/dsp");
+ if (stat("/dev/sound/dsp",&buf) == 0) {
+ dsp = g_list_append(dsp,"/dev/sound/dsp");
}
- if (stat("/dev/dsp1",&buf) == 0) {
- dsp = g_list_append(dsp,"/dev/dsp1");
+ if (stat("/dev/sound/dsp1",&buf) == 0) {
+ dsp = g_list_append(dsp,"/dev/sound/dsp1");
}
#endif
#if defined(sun) || defined(__OpenBSD__)
@@ -1822,9 +1822,9 @@
#if defined(linux) || defined(__FreeBSD__)
- if (strncmp(dsp,"/dev/dsp",8) == 0) {
+ if (strncmp(dsp,"/dev/sound/dsp",14) == 0) {
strcpy(tmp,dsp+8);
- g_snprintf(tmp2,MAXLINE,"/dev/mixer%s",tmp);
+ g_snprintf(tmp2,MAXLINE,"/dev/sound/mixer%s",tmp);
/* does device exist? */
if (stat(tmp2,&buf) == 0) {
diff -ru xcdroast-0.98alpha14.orig/src/wavplay.c xcdroast-0.98alpha14/src/wavplay.c
--- xcdroast-0.98alpha14.orig/src/wavplay.c 2003-04-22 22:28:05.000000000 +0200
+++ xcdroast-0.98alpha14/src/wavplay.c 2003-06-14 18:23:33.000000000 +0200
@@ -74,7 +74,7 @@
#if defined(linux) || defined(__FreeBSD__)
-#define DEFAULT_AUDIO_DEVICE "/dev/dsp"
+#define DEFAULT_AUDIO_DEVICE "/dev/sound/dsp"
#elif defined (aix)
#define DEFAULT_AUDIO_DEVICE ""
#elif defined(__sgi)