summaryrefslogtreecommitdiff
path: root/audio/liveice/patches/patch-aa
blob: f7e11c46606f57d3bf2e3d0ba2749a506e49acbc (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
$NetBSD: patch-aa,v 1.2 2001/05/05 10:05:34 wiz Exp $

--- liveice.h.orig	Wed May 24 15:49:56 2000
+++ liveice.h
@@ -39,11 +39,16 @@
 #include <signal.h>
 #include <netdb.h>
 #include <arpa/inet.h>   
+#ifndef __NetBSD__
 #include <sched.h>       
+#endif
 #include <unistd.h>
 #include <termios.h>
 #include <sys/wait.h>
 #include <ctype.h>
+#ifdef __NetBSD__
+#include <sys/audioio.h>
+#endif
 
 /* curses interface support */
 
@@ -268,6 +273,10 @@
 	char *recording_file;
 	char *remote_dumpfile;
 	char *sound_input_file; /* the file to read sound input from */
+#ifdef __NetBSD__
+	char *netbsd_audio_file;
+	char *netbsd_audioctl_file;
+#endif /* __NetBSD__ */
         char *random_content_id;
         char *encoder_args;
 	int sound_device;     /* set to 1 if the sound file is a device */
@@ -278,6 +287,10 @@
 	int sample_rate;
 	int stereo;
 	int audio_fd;         /* only one soundcard - only one audiofd */
+#ifdef __NetBSD__
+	int audioctl_fd;
+	audio_info_t ctlrestore;
+#endif /* __NetBSD__ */
 	int full_duplex;
 	int soundcard;         /* Are we using the soundcard? */
 	char *decoder_cmd;