summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authornat <nat>2017-04-27 07:14:01 +0000
committernat <nat>2017-04-27 07:14:01 +0000
commit4bad5c40842fd3bc98c445e118aba215559f7626 (patch)
treef9fb954781ab2caed12fbe87f043d6ab1d3814ae /audio
parent0d1f33c465e9551e47e9a649d399638b17ae611c (diff)
downloadpkgsrc-4bad5c40842fd3bc98c445e118aba215559f7626.tar.gz
Don't write an endless stream of silence whilst preparing playback.
Bump PKGREVISION. Addresses PR kern/52196.
Diffstat (limited to 'audio')
-rw-r--r--audio/portaudio-devel/Makefile3
-rw-r--r--audio/portaudio-devel/distinfo3
-rw-r--r--audio/portaudio-devel/patches/patch-src_hostapi_oss_pa__unix__oss.c22
3 files changed, 26 insertions, 2 deletions
diff --git a/audio/portaudio-devel/Makefile b/audio/portaudio-devel/Makefile
index 983601472c6..8b67e11872c 100644
--- a/audio/portaudio-devel/Makefile
+++ b/audio/portaudio-devel/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2017/02/22 14:31:26 fhajny Exp $
+# $NetBSD: Makefile,v 1.13 2017/04/27 07:14:01 nat Exp $
DISTNAME= pa_stable_v190600_20161030
PKGNAME= portaudio-devel-20161030
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.portaudio.com/archives/
EXTRACT_SUFX= .tgz
diff --git a/audio/portaudio-devel/distinfo b/audio/portaudio-devel/distinfo
index ca14593e80b..f2c8b1a81c1 100644
--- a/audio/portaudio-devel/distinfo
+++ b/audio/portaudio-devel/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2017/02/22 14:31:26 fhajny Exp $
+$NetBSD: distinfo,v 1.10 2017/04/27 07:14:01 nat Exp $
SHA1 (pa_stable_v190600_20161030.tgz) = 56c596bba820d90df7d057d8f6a0ec6bf9ab82e8
RMD160 (pa_stable_v190600_20161030.tgz) = e6e5cd3f3cb7469aa17549c189e445d573567e13
SHA512 (pa_stable_v190600_20161030.tgz) = 7ec692cbd8c23878b029fad9d9fd63a021f57e60c4921f602995a2fca070c29f17a280c7f2da5966c4aad29d28434538452f4c822eacf3a60af59a6dc8e9704c
Size (pa_stable_v190600_20161030.tgz) = 1450572 bytes
+SHA1 (patch-src_hostapi_oss_pa__unix__oss.c) = 81b6633bdb1cac8d3397bd7ebb6da1e28b68e3df
diff --git a/audio/portaudio-devel/patches/patch-src_hostapi_oss_pa__unix__oss.c b/audio/portaudio-devel/patches/patch-src_hostapi_oss_pa__unix__oss.c
new file mode 100644
index 00000000000..3614cdd4818
--- /dev/null
+++ b/audio/portaudio-devel/patches/patch-src_hostapi_oss_pa__unix__oss.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_hostapi_oss_pa__unix__oss.c,v 1.1 2017/04/27 07:14:01 nat Exp $
+
+Don't write an endless stream of silence when preparing the stream.
+
+--- src/hostapi/oss/pa_unix_oss.c.orig 2016-10-30 01:23:04.000000000 +0000
++++ src/hostapi/oss/pa_unix_oss.c
+@@ -1479,6 +1479,7 @@ static PaError PaOssStream_Prepare( PaOs
+
+ /* Looks like we have to turn off blocking before we try this, but if we don't fill the buffer
+ * OSS will complain. */
++#ifndef __NetBSD__
+ PA_ENSURE( ModifyBlocking( stream->playback->fd, 0 ) );
+ while (1)
+ {
+@@ -1486,6 +1487,7 @@ static PaError PaOssStream_Prepare( PaOs
+ break;
+ }
+ PA_ENSURE( ModifyBlocking( stream->playback->fd, 1 ) );
++#endif
+ }
+
+ if( stream->sharedDevice )