f8ed6311b0
native audio system instead of liboss emulation. Fix PLIST while I'm here.
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
$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;
|