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.

65 lines
2.5 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/mathieu/xcdroast/30_audio-dev.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -ru xcdroast-0.98alpha14.orig/src/io.c xcdroast-0.98alpha14/src/io.c
  23. --- xcdroast-0.98alpha14.orig/src/io.c 2003-05-29 15:14:42.000000000 +0200
  24. +++ xcdroast-0.98alpha14/src/io.c 2003-06-14 18:23:33.000000000 +0200
  25. @@ -1698,11 +1698,11 @@
  26. #if defined(linux) || defined(__FreeBSD__)
  27. /* for linux check if /dev/dsp or /dev/dsp1 exist */
  28. - if (stat("/dev/dsp",&buf) == 0) {
  29. - dsp = g_list_append(dsp,"/dev/dsp");
  30. + if (stat("/dev/sound/dsp",&buf) == 0) {
  31. + dsp = g_list_append(dsp,"/dev/sound/dsp");
  32. }
  33. - if (stat("/dev/dsp1",&buf) == 0) {
  34. - dsp = g_list_append(dsp,"/dev/dsp1");
  35. + if (stat("/dev/sound/dsp1",&buf) == 0) {
  36. + dsp = g_list_append(dsp,"/dev/sound/dsp1");
  37. }
  38. #endif
  39. #if defined(sun) || defined(__OpenBSD__)
  40. @@ -1822,9 +1822,9 @@
  41. #if defined(linux) || defined(__FreeBSD__)
  42. - if (strncmp(dsp,"/dev/dsp",8) == 0) {
  43. + if (strncmp(dsp,"/dev/sound/dsp",14) == 0) {
  44. strcpy(tmp,dsp+8);
  45. - g_snprintf(tmp2,MAXLINE,"/dev/mixer%s",tmp);
  46. + g_snprintf(tmp2,MAXLINE,"/dev/sound/mixer%s",tmp);
  47. /* does device exist? */
  48. if (stat(tmp2,&buf) == 0) {
  49. diff -ru xcdroast-0.98alpha14.orig/src/wavplay.c xcdroast-0.98alpha14/src/wavplay.c
  50. --- xcdroast-0.98alpha14.orig/src/wavplay.c 2003-04-22 22:28:05.000000000 +0200
  51. +++ xcdroast-0.98alpha14/src/wavplay.c 2003-06-14 18:23:33.000000000 +0200
  52. @@ -74,7 +74,7 @@
  53. #if defined(linux) || defined(__FreeBSD__)
  54. -#define DEFAULT_AUDIO_DEVICE "/dev/dsp"
  55. +#define DEFAULT_AUDIO_DEVICE "/dev/sound/dsp"
  56. #elif defined (aix)
  57. #define DEFAULT_AUDIO_DEVICE ""
  58. #elif defined(__sgi)