2002-10-03 14:21:29 +02:00
|
|
|
$NetBSD: patch-ab,v 1.5 2002/10/03 12:21:29 jlam Exp $
|
1999-04-08 01:21:26 +02:00
|
|
|
|
2002-04-29 10:40:27 +02:00
|
|
|
--- audio_oss.c.orig Tue Jul 18 18:33:41 2000
|
|
|
|
+++ audio_oss.c
|
2000-02-06 04:33:51 +01:00
|
|
|
@@ -19,7 +19,7 @@
|
1999-04-08 01:21:26 +02:00
|
|
|
#define ARCH_esd_audio_devices
|
|
|
|
const char *esd_audio_devices()
|
|
|
|
{
|
|
|
|
- return "/dev/dsp, /dev/dsp2, etc.";
|
2002-10-03 14:21:29 +02:00
|
|
|
+ return "/dev/audio, /dev/audio2, etc. or /dev/dsp, /dev/dsp2, etc.";
|
1999-04-08 01:21:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-05-30 21:20:12 +02:00
|
|
|
@@ -38,7 +38,7 @@
|
|
|
|
mode |= O_NONBLOCK;
|
1999-04-08 01:21:26 +02:00
|
|
|
|
|
|
|
/* open the sound device */
|
|
|
|
- device = esd_audio_device ? esd_audio_device : "/dev/dsp";
|
2002-10-03 14:21:29 +02:00
|
|
|
+ device = esd_audio_device ? esd_audio_device : DEV_DSP;
|
1999-04-08 01:21:26 +02:00
|
|
|
if ((afd = open(device, mode, 0)) == -1)
|
|
|
|
{ /* Opening device failed */
|
|
|
|
perror(device);
|