head 1.6; access; symbols pkgsrc-2014Q2:1.5.0.6 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.4 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.2 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.4.0.14 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.12 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.10 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.8 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.6 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.4 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.2 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.3.0.40 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.38 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.36 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.34 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.32 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.30 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.28 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.26 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.24 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.22 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.20 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.18 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.16 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.14 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.12 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.10 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.8 pkgsrc-2008Q1:1.3.0.6 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.4 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.2 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.2.0.10 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.8 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.6 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.4 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.2 pkgsrc-2006Q2-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2014.07.21.07.15.08; author dbj; state dead; branches; next 1.5; commitid g4ogo2xHwaazmdJx; 1.5 date 2013.12.15.20.19.08; author asau; state Exp; branches; next 1.4; commitid BMtWTgTWf1FdIghx; 1.4 date 2012.01.11.20.15.37; author hans; state Exp; branches; next 1.3; 1.3 date 2007.07.30.08.29.00; author joerg; state Exp; branches; next 1.2; 1.2 date 2006.06.06.15.48.34; author joerg; state Exp; branches; next 1.1; 1.1 date 2006.05.21.22.21.10; author ben; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.05.21.22.21.10; author ben; state Exp; branches; next ; desc @@ 1.6 log @update to pa_stable_v19_20140130, which functions on osx @ text @$NetBSD: patch-ac,v 1.5 2013/12/15 20:19:08 asau Exp $ --- src/hostapi/oss/pa_unix_oss.c.orig 2006-05-17 08:02:24.000000000 +0000 +++ src/hostapi/oss/pa_unix_oss.c @@@@ -42,8 +42,10 @@@@ #include #include #include +#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__) #include -#include +#endif +#include #include #include #include @@@@ -52,12 +54,15 @@@@ #include #include -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__sun) # include # define DEVICE_NAME_BASE "/dev/dsp" #elif defined __linux__ # include # define DEVICE_NAME_BASE "/dev/dsp" +#elif defined(__NetBSD__) +# include +# define DEVICE_NAME_BASE "/dev/audio" #else # include /* JH20010905 */ # define DEVICE_NAME_BASE "/dev/audio" @@@@ -1916,8 +1921,10 @@@@ static signed long GetStreamWriteAvailab PaOssStream *stream = (PaOssStream*)s; int delay = 0; +#if !defined(__NetBSD__) if( ioctl( stream->playback->fd, SNDCTL_DSP_GETODELAY, &delay ) < 0 ) return paUnanticipatedHostError; +#endif return (PaOssStreamComponent_BufferSize( stream->playback ) - delay) / PaOssStreamComponent_FrameSize( stream->playback ); } @ 1.5 log @FreeBSD 9 doesn't have alloca.h, alloca() is declared in stdlib.h @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.4 2012/01/11 20:15:37 hans Exp $ @ 1.4 log @Fix build on SunOS. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 2007/07/30 08:29:00 joerg Exp $ d9 1 a9 1 +#if !defined(__NetBSD__) && !defined(__DragonFly__) @ 1.3 log @Use stdlib.h instead of malloc.h. @ text @d1 1 a1 1 $NetBSD$ d22 1 a22 1 +#if defined(__FreeBSD__) || defined(__DragonFly__) @ 1.2 log @Fix pthread usage. Add DragonFly support. @ text @d5 1 a5 1 @@@@ -42,7 +42,9 @@@@ d11 1 d13 1 a13 1 #include d16 1 @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- src/hostapi/oss/pa_unix_oss.c.orig 2006-05-17 01:02:24.000000000 -0700 d9 1 a9 1 +#if !defined(__NetBSD__) d15 8 a22 1 @@@@ -58,6 +60,9 @@@@ @ 1.1.1.1 log @Initial import for portaudio-devel-20060521 (at this moment also known as portaudio version 19), a portable cross-platform Audio API. PortAudio is a free, cross platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' that will compile and run on many platforms including Windows, Macintosh (8,9,X), Unix (OSS), SGI, and BeOS. PortAudio is intended to promote the exchange of audio synthesis software between developers on different platforms, and was recently selected as the audio component of a larger PortMusic project that includes MIDI and sound file support. PortAudio provides a very simple API for recording and/or playing sound using a simple callback function. Example programs are included that synthesize sine waves and pink noise, perform fuzz distortion on a guitar, list available audio devices, etc. @ text @@