summaryrefslogtreecommitdiff
path: root/audio/csound-bath/patches/patch-ao
blob: 0d40d8fbdae6c10cb8a7f1b8f5aade19d7509789 (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-ao,v 1.1.1.1 2001/04/27 17:17:18 wiz Exp $

--- rtlinux.c.orig	Thu Apr  5 14:30:43 2001
+++ rtlinux.c	Thu Apr  5 14:30:57 2001
@@ -10,7 +10,7 @@
 
 #include <unistd.h>
 #include <fcntl.h>
-#define DSP_NAME    "/dev/dsp"
+#define DSP_NAME    "/dev/audio"
 static int dspfd;
 void setsndparms(int, int, int, MYFLT, unsigned);
 void setvolume(unsigned);
@@ -111,7 +111,7 @@
         long sampframes = nbytes >> oshift;
         /*  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"));
         nrecs++;
 }