summaryrefslogtreecommitdiff
path: root/audio/esound/patches/patch-ab
blob: f24c340977c60715d8cfbf469439d5d098cedddb (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.4 2002/04/29 08:40:28 wiz Exp $

--- audio_oss.c.orig	Tue Jul 18 18:33:41 2000
+++ audio_oss.c
@@ -19,7 +19,7 @@
 #define ARCH_esd_audio_devices
 const char *esd_audio_devices()
 {
-    return "/dev/dsp, /dev/dsp2, etc.";
+    return "/dev/audio, /dev/audio2, etc.";
 }
 
 
@@ -38,7 +38,7 @@
     mode |= O_NONBLOCK;
 
     /* open the sound device */
-    device = esd_audio_device ? esd_audio_device : "/dev/dsp";
+    device = esd_audio_device ? esd_audio_device : "/dev/audio";
     if ((afd = open(device, mode, 0)) == -1)
     {   /* Opening device failed */
         perror(device);