diff options
author | gson <gson@pkgsrc.org> | 2002-08-27 04:36:19 +0000 |
---|---|---|
committer | gson <gson@pkgsrc.org> | 2002-08-27 04:36:19 +0000 |
commit | 114f0bc1ab8edb6fc0b6041e61311dc4c6a8a626 (patch) | |
tree | b05cea00193c32e2afd9a4c9824871068dd5d95d /audio/tcl-snack | |
parent | ff9c3a37cacbe72165e989a236022665d9a895a5 (diff) | |
download | pkgsrc-114f0bc1ab8edb6fc0b6041e61311dc4c6a8a626.tar.gz |
Use /dev/sound rather than /dev/dsp as the default audio device
on NetBSD
Diffstat (limited to 'audio/tcl-snack')
-rw-r--r-- | audio/tcl-snack/distinfo | 3 | ||||
-rw-r--r-- | audio/tcl-snack/patches/patch-ad | 33 |
2 files changed, 35 insertions, 1 deletions
diff --git a/audio/tcl-snack/distinfo b/audio/tcl-snack/distinfo index aa80729e5c3..e588a4ab9c8 100644 --- a/audio/tcl-snack/distinfo +++ b/audio/tcl-snack/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2002/08/26 02:26:26 gson Exp $ +$NetBSD: distinfo,v 1.3 2002/08/27 04:36:19 gson Exp $ SHA1 (snack2.2a2.tar.Z) = 01a0f1c0f82823317c9eecc21bdb3357d08aff33 Size (snack2.2a2.tar.Z) = 1854805 bytes SHA1 (patch-aa) = 10b99adfd6be5bce665bc684df2ff4e2ba98b8a6 SHA1 (patch-ab) = 9d23177311cb392ad5e0203c1a4f5e2cf6d2ca55 SHA1 (patch-ac) = 470511443dab1a8fd0e4a0b94f30f43a733a43e4 +SHA1 (patch-ad) = e6868638722219bf18a345563d8ae2e3436bec81 diff --git a/audio/tcl-snack/patches/patch-ad b/audio/tcl-snack/patches/patch-ad new file mode 100644 index 00000000000..aa7459ee8ae --- /dev/null +++ b/audio/tcl-snack/patches/patch-ad @@ -0,0 +1,33 @@ +$NetBSD: patch-ad,v 1.1 2002/08/27 04:36:20 gson Exp $ + +--- jkAudIO_oss.c.orig Wed Jul 17 04:03:15 2002 ++++ jkAudIO_oss.c +@@ -35,7 +35,11 @@ + #include <ctype.h> + #include <stdlib.h> + #include <glob.h> ++#ifdef __NetBSD__ ++#define DEVICE_NAME "/dev/sound" ++#else + #define DEVICE_NAME "/dev/dsp" ++#endif + #define MIXER_NAME "/dev/mixer" + static char *defaultDeviceName = DEVICE_NAME; + extern void Snack_WriteLog(char *s); +@@ -971,11 +975,15 @@ + { + int i, j = 0; + glob_t globt; +- ++ ++#ifdef __NetBSD__ ++ glob("/dev/sound*", 0, NULL, &globt); ++#else + glob("/dev/dsp*", 0, NULL, &globt); + glob("/dev/audio*", GLOB_APPEND, NULL, &globt); + glob("/dev/sound/dsp*", GLOB_APPEND, NULL, &globt); + glob("/dev/sound/audio*", GLOB_APPEND, NULL, &globt); ++#endif + + for (i = 0; i < globt.gl_pathc; i++) { + if (j < n) { |