summaryrefslogtreecommitdiff
path: root/emulators/vice/patches/patch-ac
blob: a93000fe57b2da80b102d745ff87133e15d6f7b4 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$NetBSD: patch-ac,v 1.15 2006/06/29 22:56:34 dillo Exp $

--- src/sounddrv/soundsun.c.orig	2005-12-23 23:29:54.000000000 +0100
+++ src/sounddrv/soundsun.c
@@ -63,7 +63,7 @@ static int sun_fd = -1;
 static int sun_8bit = 0;
 static int sun_channels = 1;
 static int sun_bufsize = 0;
-#if !defined(__NETBSD__)
+#if !defined(__NetBSD__)
 static int sun_written = 0;
 #endif
 
@@ -107,7 +107,7 @@ static int sun_init(const char *param, i
     int	st;
     struct audio_info info;
 
-#if !defined(__NETBSD__)
+#if !defined(__NetBSD__)
     /* No stereo capability. */
     *channels = 1;
 #endif
@@ -142,7 +142,7 @@ static int sun_init(const char *param, i
 	log_message(LOG_DEFAULT, "Playing 8 bit ulaw at 8000Hz");
     }
     sun_bufsize = (*fragsize)*(*fragnr);
-#if !defined(__NETBSD__)
+#if !defined(__NetBSD__)
     sun_written = 0;
 #endif
     sun_channels = *channels;
@@ -171,7 +171,7 @@ static int sun_write(SWORD *pbuf, size_t
 	if (now <= 0)
 	    return 1;
     }
-#if !defined(__NETBSD__)
+#if !defined(__NetBSD__)
     sun_written += nr;
 #endif
 
@@ -204,7 +204,7 @@ static void sun_close(void)
     sun_fd = -1;
     sun_8bit = 0;
     sun_bufsize = 0;
-#if !defined(__NETBSD__)
+#if !defined(__NetBSD__)
     sun_written = 0;
 #endif
     sun_channels = 1;