summaryrefslogtreecommitdiff
path: root/audio/xamp/patches/patch-aa
blob: 2e713c03e20530d63ff7efbc550b05f92ae761c1 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
$NetBSD: patch-aa,v 1.1.1.1 1999/09/17 00:48:27 hubertf Exp $

--- ../audioIO.c.old	Sun Oct 26 10:55:27 1997
+++ ../audioIO.c	Sun Oct 26 10:56:03 1997
@@ -18,7 +18,7 @@
   #include "audioIO_HPUX.c"
 #endif
 
-#ifdef OS_SunOS
+#if defined(OS_SunOS) || defined(OS_NetBSD)
   #include "audioIO_SunOS.c"
 #endif
 
--- ../audioIO.h.old	Sun Oct 26 10:57:10 1997
+++ ../audioIO.h	Fri Oct 31 06:43:07 1997
@@ -27,3 +27,7 @@
 #ifdef OS_SunOS
   #define AUSIZ 4096
 #endif
+
+#ifdef OS_NetBSD
+  #define AUSIZ 32768
+#endif
--- ../audioIO_SunOS.c.old	Sun Oct 26 10:58:36 1997
+++ ../audioIO_SunOS.c	Sun Oct 26 11:13:51 1997
@@ -8,7 +8,11 @@
 
 #include "amp.h"
 #include <sys/types.h>
+#ifndef OS_NetBSD
 #include <sys/stropts.h>
+#else
+#include <sys/ioctl.h>
+#endif
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
@@ -36,8 +40,7 @@
 	}
 	DB(audio, msg("Audio device opened on %d\n",audio_fd) );
 
-	if (ioctl(audio_fd,AUDIO_GETINFO,&auinfo)<0)
-		die("Unable to get audio info\n");
+	AUDIO_INITINFO(&auinfo);
 
 	auinfo.play.precision=16;
 	auinfo.play.encoding=AUDIO_ENCODING_LINEAR;
--- configure.in.old	Sun Oct 26 10:53:03 1997
+++ configure.in	Sun Oct 26 10:54:32 1997
@@ -58,7 +58,7 @@
     DEFINES="-DOS_$OS_TYPE -DARCH_$ARCH_TYPE"
     ;;
 
-  Linux|FreeBSD)
+  Linux|FreeBSD|NetBSD)
     CC="gcc"
     if test "$ARCH_TYPE" = "i486" ; then
       CFLAGS_ARCH="-m486"
--- configure.old	Sun Oct 26 11:18:18 1997
+++ configure	Sun Oct 26 11:18:45 1997
@@ -1398,7 +1398,7 @@
     DEFINES="-DOS_$OS_TYPE -DARCH_$ARCH_TYPE"
     ;;
 
-  Linux|FreeBSD)
+  Linux|FreeBSD|NetBSD)
     CC="gcc"
     if test "$ARCH_TYPE" = "i486" ; then
       CFLAGS_ARCH="-m486"