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

  1. diff -ru xcdroast-0.98alpha14.orig/src/io.c xcdroast-0.98alpha14/src/io.c
  2. --- xcdroast-0.98alpha14.orig/src/io.c 2003-05-29 15:14:42.000000000 +0200
  3. +++ xcdroast-0.98alpha14/src/io.c 2003-06-14 18:23:33.000000000 +0200
  4. @@ -1698,11 +1698,11 @@
  5. #if defined(linux) || defined(__FreeBSD__)
  6. /* for linux check if /dev/dsp or /dev/dsp1 exist */
  7. - if (stat("/dev/dsp",&buf) == 0) {
  8. - dsp = g_list_append(dsp,"/dev/dsp");
  9. + if (stat("/dev/sound/dsp",&buf) == 0) {
  10. + dsp = g_list_append(dsp,"/dev/sound/dsp");
  11. }
  12. - if (stat("/dev/dsp1",&buf) == 0) {
  13. - dsp = g_list_append(dsp,"/dev/dsp1");
  14. + if (stat("/dev/sound/dsp1",&buf) == 0) {
  15. + dsp = g_list_append(dsp,"/dev/sound/dsp1");
  16. }
  17. #endif
  18. #if defined(sun) || defined(__OpenBSD__)
  19. @@ -1822,9 +1822,9 @@
  20. #if defined(linux) || defined(__FreeBSD__)
  21. - if (strncmp(dsp,"/dev/dsp",8) == 0) {
  22. + if (strncmp(dsp,"/dev/sound/dsp",14) == 0) {
  23. strcpy(tmp,dsp+8);
  24. - g_snprintf(tmp2,MAXLINE,"/dev/mixer%s",tmp);
  25. + g_snprintf(tmp2,MAXLINE,"/dev/sound/mixer%s",tmp);
  26. /* does device exist? */
  27. if (stat(tmp2,&buf) == 0) {
  28. diff -ru xcdroast-0.98alpha14.orig/src/wavplay.c xcdroast-0.98alpha14/src/wavplay.c
  29. --- xcdroast-0.98alpha14.orig/src/wavplay.c 2003-04-22 22:28:05.000000000 +0200
  30. +++ xcdroast-0.98alpha14/src/wavplay.c 2003-06-14 18:23:33.000000000 +0200
  31. @@ -74,7 +74,7 @@
  32. #if defined(linux) || defined(__FreeBSD__)
  33. -#define DEFAULT_AUDIO_DEVICE "/dev/dsp"
  34. +#define DEFAULT_AUDIO_DEVICE "/dev/sound/dsp"
  35. #elif defined (aix)
  36. #define DEFAULT_AUDIO_DEVICE ""
  37. #elif defined(__sgi)