summaryrefslogtreecommitdiff
path: root/audio/esound/patches/patch-ab
blob: 0e7eeb0578c1ed9e2970abe7140a233cd99fd316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.8 2008/11/20 17:42:27 wiz Exp $

--- 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)