blob: 8c43a2d06e408ee6bf109094341a0e0d83cc6f91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ab,v 1.9 2011/09/09 15:20:59 wiz Exp $
Adapt path to audio device.
--- audio_oss.c.orig 2008-11-18 20:35:19.000000000 +0000
+++ audio_oss.c
@@ -20,7 +20,7 @@
#define ARCH_esd_audio_devices
const char *esd_audio_devices()
{
- return "/dev/dsp, /dev/dsp2, etc.";
+ return "/dev/audio, /dev/audio2, etc. or /dev/dsp, /dev/dsp2, etc.";
}
#define NFRAGS 32
@@ -56,7 +56,7 @@ int esd_audio_open()
mode |= O_NONBLOCK;
/* open the sound device */
- device = esd_audio_device ? esd_audio_device : "/dev/dsp";
+ device = esd_audio_device ? esd_audio_device : DEV_DSP;
if ((afd = open(device, mode, 0)) == -1)
{ /* Opening device failed */
if (errno != ENOENT)
|