diff options
Diffstat (limited to 'audio/ac3dec/patches/patch-ab')
-rw-r--r-- | audio/ac3dec/patches/patch-ab | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/audio/ac3dec/patches/patch-ab b/audio/ac3dec/patches/patch-ab index 42dc6e211ec..b3e43e8e89d 100644 --- a/audio/ac3dec/patches/patch-ab +++ b/audio/ac3dec/patches/patch-ab @@ -1,13 +1,31 @@ -$NetBSD: patch-ab,v 1.2 2000/04/06 15:42:42 wiz Exp $ +$NetBSD: patch-ab,v 1.3 2001/01/08 00:22:00 mycroft Exp $ ---- output_linux.c.orig Thu Mar 30 02:51:24 2000 -+++ output_linux.c Thu Apr 6 17:28:05 2000 -@@ -33,7 +33,7 @@ - #include <unistd.h> +--- output_solaris.c.orig Thu Mar 30 00:51:24 2000 ++++ output_solaris.c Mon Jan 8 00:16:44 2001 +@@ -34,12 +34,13 @@ #include <fcntl.h> + #include <sys/audioio.h> + #include <sys/ioctl.h> +-#include <stropts.h> + #include <signal.h> #include <math.h> --#if defined(__OpenBSD__) -+#if defined(__NetBSD__) || defined (__OpenBSD__) - #include <soundcard.h> - #elif defined(__FreeBSD__) - #include <machine/soundcard.h> + ++#ifndef __NetBSD__ + //FIXME broken solaris headers! + int usleep(unsigned int useconds); ++#endif + + + //this sux...types should go in config.h methinks +@@ -79,7 +80,11 @@ + info.play.sample_rate = rate; + info.play.precision = bits; + info.play.channels = channels; ++#ifndef __NetBSD__ + info.play.buffer_size = 1024; ++#else ++ info.blocksize = 1024; ++#endif + info.play.encoding = AUDIO_ENCODING_LINEAR; + //info.play.port = AUDIO_SPEAKER; + //info.play.gain = 110; |