diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2017-05-01 09:25:40 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2017-05-01 09:25:40 +0000 |
commit | 17dfc76a22898f70bacbd8275794fb1c7eddbe52 (patch) | |
tree | 0fbc02e9b5f4698ba057cf98c35511ad8a56c6db | |
parent | c02d44c2542a054f41a88ccb231de406dd9c1f82 (diff) | |
download | pkgsrc-17dfc76a22898f70bacbd8275794fb1c7eddbe52.tar.gz |
Pullup ticket #5378 - requested by sevan
audio/portaudio-devel: bugfix
Revisions pulled up:
- audio/portaudio-devel/Makefile 1.13
- audio/portaudio-devel/distinfo 1.10
- audio/portaudio-devel/patches/patch-src_hostapi_oss_pa__unix__oss.c 1.1
---
Module Name: pkgsrc
Committed By: nat
Date: Thu Apr 27 07:14:01 UTC 2017
Modified Files:
pkgsrc/audio/portaudio-devel: Makefile distinfo
Added Files:
pkgsrc/audio/portaudio-devel/patches:
patch-src_hostapi_oss_pa__unix__oss.c
Log Message:
Don't write an endless stream of silence whilst preparing playback.
Bump PKGREVISION.
Addresses PR kern/52196.
-rw-r--r-- | audio/portaudio-devel/Makefile | 3 | ||||
-rw-r--r-- | audio/portaudio-devel/distinfo | 3 | ||||
-rw-r--r-- | audio/portaudio-devel/patches/patch-src_hostapi_oss_pa__unix__oss.c | 22 |
3 files changed, 26 insertions, 2 deletions
diff --git a/audio/portaudio-devel/Makefile b/audio/portaudio-devel/Makefile index 983601472c6..e2ce0184349 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.12.2.1 2017/05/01 09:25:40 bsiegert 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..4a6b11aa8d6 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.9.2.1 2017/05/01 09:25:40 bsiegert 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..1702f23524b --- /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.2.2 2017/05/01 09:25:40 bsiegert 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 ) |