summaryrefslogtreecommitdiff
path: root/audio/csound/patches/patch-al
blob: f107a99d8338e2787f1a4b2f2e08933269f3d6f7 (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-al,v 1.1.1.1 2001/03/13 13:18:24 wiz Exp $

--- rtaudio.c.orig	Thu Feb  3 22:52:01 2000
+++ rtaudio.c
@@ -37,7 +37,7 @@
 #ifdef LINUX                                  /* Jonathan Mohr  1995 Oct 17 */
 #include <unistd.h>
 #include <fcntl.h>
-#define DSP_NAME    "/dev/dsp"
+#define DSP_NAME    "/dev/audio"
 static int dspfd;
 void setsndparms(int, int, int, float, unsigned);
 void setvolume(unsigned);
@@ -648,7 +648,7 @@
 
 #ifdef LINUX                                       /*  J. Mohr  1995 Oct 17 */
         if (write(dspfd, outbuf, nbytes) < nbytes)
-            printf(Str(X_177,"/dev/dsp: couldn't write all bytes requested\n"));
+            printf(Str(X_177,"/dev/audio: couldn't write all bytes requested\n"));
 #endif
 #ifdef __BEOS__
         while (nbytes > 0) {