]> Repos - portaudio/log
portaudio
16 years agowindows WASAPI fixes/improvements:
dmitrykos [Fri, 19 Feb 2010 11:16:01 +0000 (11:16 +0000)]
windows WASAPI fixes/improvements:
- fixed dependency of framesPerBuffer parameter in Pa_OpenStream and latency (now only latency setting affects device latency which is correct behavior);
- paFramesPerBufferUnspecified is now supported for Pa_OpenStream;
- sound distortion fixed for Shared mode if framesPerBuffer is lower than device limit and when latency was set to 0;
- fixed timeout for Exclusive mode due to buffer misalignment;
- improved precision of DAC/ADC time for running stream;
- avoided memory leaks on failure of Pa_OpenStream;
- NULL checks on stream pointer for all external methods;
- correct host buffer mode for paWinWasapiPolling mode to deliver fixed number of frames to user space;
- implemented workaround for Vista x64 WOW64 bug if Event-mode is used for Shared mode (due to incorrect Event signaling audio dropouts were happening): will fall back to safe Polling method automatically.

16 years agoimproved PaWasapi_ThreadPriorityBoost by providing enum PaWasapiThreadPriority with...
dmitrykos [Wed, 17 Feb 2010 10:11:40 +0000 (10:11 +0000)]
improved PaWasapi_ThreadPriorityBoost by providing enum PaWasapiThreadPriority with explicit thread priority values for convenience. it is possible to override default thread priority setting for Event/Poll-driven modes by specifying new flag paWinWasapiThreadPriority and setting priority value through PaWasapiStreamInfo::threadPriority member.

16 years agofixed crash on NULL pointer usage if hostApiSpecificStreamInfo was NULL in Pa_OpenSt...
dmitrykos [Tue, 16 Feb 2010 11:52:19 +0000 (11:52 +0000)]
fixed crash on NULL pointer  usage if hostApiSpecificStreamInfo was NULL in Pa_OpenStream method

16 years agoprovided ability not to depend on ksguid.lib when using WDMKS as it may not be provid...
dmitrykos [Tue, 16 Feb 2010 11:18:52 +0000 (11:18 +0000)]
provided ability not to depend on ksguid.lib when using WDMKS as it may not be provided for x64 SDK by default, define PA_WDMKS_NO_KSGUID_LIB to use static declarations, x64 MSVC project corrected to define PA_WDMKS_NO_KSGUID_LIB for x64 compilations. added WASAPI symbols to portaudio.def.

16 years agofinished WASAPI implementation:
dmitrykos [Tue, 16 Feb 2010 09:46:08 +0000 (09:46 +0000)]
finished WASAPI implementation:
 - Callback/Blocking interface
 - Playback/Capture
 - Shared/Exclusive mode
to compile you must have installed recent Windows SDK(Vista SDK or higher) and min Visual Studio 2005 SP1. WASAPI is enabled by default, to disable you must define PA_NO_WASAPI prior compilation.

16 years agojusttesting
dmitrykos [Wed, 10 Feb 2010 18:10:18 +0000 (18:10 +0000)]
justtesting

16 years agojusttesting
philburk [Wed, 10 Feb 2010 18:05:40 +0000 (18:05 +0000)]
justtesting

16 years agofix for undefined DirectSoundFullDuplex8 when PAWIN_USE_DIRECTSOUNDFULLDUPLEXCREATE...
rossb [Wed, 3 Feb 2010 00:28:29 +0000 (00:28 +0000)]
fix for undefined DirectSoundFullDuplex8 when PAWIN_USE_DIRECTSOUNDFULLDUPLEXCREATE wasn't defined. thanks Dmitry

16 years agoAdded code to PortAudio/DirectSound to use DX8 DirectSoundFullDuplexCreate API for...
rossb [Tue, 2 Feb 2010 09:01:13 +0000 (09:01 +0000)]
Added code to PortAudio/DirectSound to use DX8 DirectSoundFullDuplexCreate API for full duplex streams where available. Define PAWIN_USE_DIRECTSOUNDFULLDUPLEXCREATE in your project to enable this feature.

16 years agoimplemented paPrimeOutputBuffersUsingStreamCallback for DirectSound (previously this...
rossb [Sun, 24 Jan 2010 13:17:31 +0000 (13:17 +0000)]
implemented paPrimeOutputBuffersUsingStreamCallback for DirectSound (previously this was the default). invoke some buffer reset code to from StartStream (actually ClearOutputBuffer) instead of OpenStream which should give cleaner startup behavior if the stream is started and stopped multiple times. fixed leaks under error in InitOutputBuffer and fixed leak of primary buffer (previously was never released)

16 years agoreset oscillator phase at start of each test cycle so that the onsets sound the same
rossb [Sun, 24 Jan 2010 12:35:36 +0000 (12:35 +0000)]
reset oscillator phase at start of each test cycle so that the onsets sound the same

16 years agoremoved hardwired device number from previous commit
rossb [Sun, 24 Jan 2010 12:27:31 +0000 (12:27 +0000)]
removed hardwired device number from previous commit

16 years agoDirectSound don't crash when starting a blocking io (non-callback) stream. blocking...
rossb [Sun, 24 Jan 2010 12:09:34 +0000 (12:09 +0000)]
DirectSound don't crash when starting a blocking io (non-callback) stream. blocking io still not implemented though.

16 years agoadded test case to patest_stop_playout.c which catches issues with host buffers loopi...
rossb [Sun, 24 Jan 2010 11:48:06 +0000 (11:48 +0000)]
added test case to patest_stop_playout.c which catches issues with host buffers looping/not being cleared if the callback returns paComplete

16 years agoreworked DirectSound stream completion to correctly flush the buffer processor and...
rossb [Sun, 24 Jan 2010 11:42:56 +0000 (11:42 +0000)]
reworked DirectSound stream completion to correctly flush the buffer processor and zero DS buffers when the callback returns paComplete or paAbort. resolves ticket #86. use test patest_stop_playout.c to verify.

16 years agoclean up resources better if DirectSound OpenStream fails
rossb [Sun, 24 Jan 2010 09:34:48 +0000 (09:34 +0000)]
clean up resources better if DirectSound OpenStream fails

16 years agofixes to DirectSound implementation to work in unicode builds
rossb [Sun, 24 Jan 2010 09:21:50 +0000 (09:21 +0000)]
fixes to DirectSound implementation to work in unicode builds

16 years agouse a win32 Event object (aka condition variable) to signal timer process completio...
rossb [Sun, 24 Jan 2010 09:20:23 +0000 (09:20 +0000)]
use a win32 Event object (aka condition variable) to signal timer process completio to Pa_StopStream in DirectSound implementation. resolves race condition when stopping direct sounds streams.

16 years agoadded msvc link pragma to require ksguid.lib
rossb [Sun, 24 Jan 2010 08:42:02 +0000 (08:42 +0000)]
added msvc link pragma to require ksguid.lib

16 years agomade buffer in PaUtil_DebugPrint local rather than static to avoid multithreaded...
rossb [Wed, 23 Dec 2009 05:35:08 +0000 (05:35 +0000)]
made buffer in PaUtil_DebugPrint local rather than static to avoid multithreaded issues

16 years agoifdefs for correct windows mobile compilation
rossb [Thu, 10 Dec 2009 08:10:08 +0000 (08:10 +0000)]
ifdefs for correct windows mobile compilation

16 years agoadded cast to IsDebuggerPresentPtr, fixes compilation of asio on some systems
rossb [Thu, 10 Dec 2009 08:09:21 +0000 (08:09 +0000)]
added cast to IsDebuggerPresentPtr, fixes compilation of asio on some systems

16 years agoupdated configure with a simple run of autoconf. seems to work on mac.
bjornroche [Thu, 10 Dec 2009 01:37:02 +0000 (01:37 +0000)]
updated configure with a simple run of autoconf. seems to work on mac.

16 years agoderive ds output channel count from speaker configuration when pnpInterface is unavai...
rossb [Wed, 9 Dec 2009 01:55:50 +0000 (01:55 +0000)]
derive ds output channel count from speaker configuration when pnpInterface is unavailable (eg wavemapper). Thanks to Dmitry Kostjuchenko for the patch.

16 years agofix for bad x64 DWORD_PTR define
rossb [Wed, 9 Dec 2009 01:42:59 +0000 (01:42 +0000)]
fix for bad x64 DWORD_PTR define

16 years agoFixed bug (when PAWIN_USE_WDMKS_DEVICE_INFO is defined) where wmme device channel...
rossb [Wed, 9 Dec 2009 01:31:44 +0000 (01:31 +0000)]
Fixed bug (when PAWIN_USE_WDMKS_DEVICE_INFO is defined) where wmme device channel count would be incorrect for default device resulting in distorted sound if user tries to open device with more channels than device can handle. Thanks to Dmitry Kostjuchenko for the patch.

16 years agoUpdate to Makefile.in and Configure.in from Stelios Bounanos: Pretty-print help strin...
rossb [Tue, 8 Dec 2009 09:40:09 +0000 (09:40 +0000)]
Update to Makefile.in and Configure.in from Stelios Bounanos: Pretty-print help strings, Support multiple APIs on win32 with mingw, Output a configuration summary at the end, Remove ASIO build configuration from OSX

16 years agoPatch from Dmitry Kostjuchenko: Fixes x64 issue with mis-casting DWORD_PTRs to DWORDs...
rossb [Tue, 8 Dec 2009 09:26:33 +0000 (09:26 +0000)]
Patch from Dmitry Kostjuchenko: Fixes x64 issue with mis-casting DWORD_PTRs to DWORDs, support proper conversion of device names in UNICODE builds, use of CreateThread instead of _beginthreadex with cygwin.

16 years agoadded empty memory barrier macros for WINCE thanks to Dmitry Kostjuchenko
rossb [Tue, 8 Dec 2009 09:17:34 +0000 (09:17 +0000)]
added empty memory barrier macros for WINCE thanks to Dmitry Kostjuchenko

16 years agoadded and removed dummy property listener as this may be required by OS X 10.6. Also...
bjornroche [Wed, 2 Dec 2009 17:48:05 +0000 (17:48 +0000)]
added and removed dummy property listener as this may be required by OS X 10.6. Also, returned no error on property timeout.

16 years agocleanup of property change checking and error handling
bjornroche [Tue, 1 Dec 2009 15:58:37 +0000 (15:58 +0000)]
cleanup of property change checking and error handling

16 years agoadded return char
bjornroche [Tue, 1 Dec 2009 15:38:55 +0000 (15:38 +0000)]
added return char

16 years agoremoved some redundant code
bjornroche [Tue, 1 Dec 2009 15:38:08 +0000 (15:38 +0000)]
removed some redundant code

16 years agoadded new test for hardware samplerate changes. This is mostly targetted to the mac...
bjornroche [Mon, 30 Nov 2009 21:08:54 +0000 (21:08 +0000)]
added new test for hardware samplerate changes. This is mostly targetted to the mac, but could be adapted to other platforms as well.

16 years agofixes for hardware samplerate changes
bjornroche [Mon, 30 Nov 2009 21:07:43 +0000 (21:07 +0000)]
fixes for hardware samplerate changes

16 years agoadded assert back as suggested by Dmitry Kostjuchenko
bjornroche [Wed, 18 Nov 2009 21:07:31 +0000 (21:07 +0000)]
added assert back as suggested by Dmitry Kostjuchenko

16 years agofix for ringbuffer problem on 64-bit macs. Also, this should make it possible to...
bjornroche [Wed, 18 Nov 2009 16:09:05 +0000 (16:09 +0000)]
fix for ringbuffer problem on 64-bit macs. Also, this should make it possible to migrate away from using the long datatype on pa_ringbuffer.

16 years agoadded two includes which should not be necessary but seem to help compiling in snow...
bjornroche [Thu, 22 Oct 2009 17:51:07 +0000 (17:51 +0000)]
added two includes which should not be necessary but seem to help compiling in snow leopard

16 years agopatch to use mach absolute time on mac OS X since apple advises against gettimeofday...
bjornroche [Thu, 22 Oct 2009 17:28:35 +0000 (17:28 +0000)]
patch to use mach absolute time on mac OS X since apple advises against gettimeofday in IOProcs. Patch due to Ross Bencina.

16 years agoFixed dither for 64-bit targets.
philburk [Mon, 12 Oct 2009 21:00:53 +0000 (21:00 +0000)]
Fixed dither for 64-bit targets.

16 years agoadded instructions for building without ASIO support to the msvc readme
rossb [Wed, 9 Sep 2009 12:48:17 +0000 (12:48 +0000)]
added instructions for building without ASIO support to the msvc readme

17 years agoremoved reaper asio driver blacklisting
rossb [Tue, 16 Jun 2009 16:12:41 +0000 (16:12 +0000)]
removed reaper asio driver blacklisting

17 years agoFix latency calculation in PA ALSA svn/1415
aknudsen [Wed, 3 Jun 2009 18:57:56 +0000 (18:57 +0000)]
Fix latency calculation in PA ALSA

17 years agoAdd PA ALSA extension to allow setting number of retries when busy
aknudsen [Sun, 24 May 2009 17:02:10 +0000 (17:02 +0000)]
Add PA ALSA extension to allow setting number of retries when busy

17 years agoClarify hostapi ordering somewhat
aknudsen [Sun, 24 May 2009 17:00:36 +0000 (17:00 +0000)]
Clarify hostapi ordering somewhat

17 years agoApply Kevin Kofler's non-mmap patch
aknudsen [Sun, 24 May 2009 16:54:22 +0000 (16:54 +0000)]
Apply Kevin Kofler's non-mmap patch

17 years agofix for half duplex and build issues from Toni Wilen.
rossb [Thu, 14 May 2009 14:37:37 +0000 (14:37 +0000)]
fix for half duplex and build issues from Toni Wilen.

17 years agoadded pragma to autolink libwinmm with msvc to get timeGetTime symbol when only using...
rossb [Tue, 7 Apr 2009 10:08:48 +0000 (10:08 +0000)]
added pragma to autolink libwinmm with msvc to get timeGetTime symbol when only using ASIO. thanks Yann

17 years agofixed a bug in WAVEFORMATEX casts, and warnings on sprintf
davidv [Sat, 4 Apr 2009 20:04:53 +0000 (20:04 +0000)]
fixed a bug in WAVEFORMATEX casts, and warnings on sprintf

17 years agofixed inputBufferAdcTime calculation for AdaptingInputOnlyProcess. patch from Yann.
rossb [Fri, 13 Mar 2009 16:41:39 +0000 (16:41 +0000)]
fixed inputBufferAdcTime calculation for AdaptingInputOnlyProcess. patch from Yann.

17 years agofixed bug in asio blocking i/o stream initialization which would cause crash (bad...
rossb [Fri, 13 Mar 2009 16:31:28 +0000 (16:31 +0000)]
fixed bug in asio blocking i/o stream initialization which would cause crash (bad ptr). enabled timeout code in read/writestream. patch from sven fischer

17 years agoadded notes to pa_test_ac3.c that the test stream file must include the correct spdif...
rossb [Sun, 8 Mar 2009 08:15:50 +0000 (08:15 +0000)]
added notes to pa_test_ac3.c that the test stream file must include the correct spdif preamble on every ac3 frame

17 years agoalways disable wmme clip and dither if an spdif passthrough wave format is requested
rossb [Sun, 8 Mar 2009 08:10:55 +0000 (08:10 +0000)]
always disable wmme clip and dither if an spdif passthrough wave format is requested

17 years agominor code logic cleanup
rossb [Sun, 8 Mar 2009 07:15:03 +0000 (07:15 +0000)]
minor code logic cleanup

17 years agoadded patest_wmme_ac3.cp test for wmme ac3 spdif passthrough
rossb [Thu, 29 Jan 2009 07:33:04 +0000 (07:33 +0000)]
added patest_wmme_ac3.cp test for wmme ac3 spdif passthrough

17 years agowmme host api: take account of paWinMmeWaveFormatDolbyAc3Spdif and paWinMmeWaveFormat...
rossb [Thu, 29 Jan 2009 06:28:30 +0000 (06:28 +0000)]
wmme host api: take account of paWinMmeWaveFormatDolbyAc3Spdif and paWinMmeWaveFormatWmaSpdif flags in Pa_IsFormatSupported

17 years agoinitial support for ac3+wma spdif passthrough for pa_win_wmme. see flags in pa_win_wm...
rossb [Wed, 21 Jan 2009 12:07:32 +0000 (12:07 +0000)]
initial support for ac3+wma spdif passthrough for pa_win_wmme. see flags in pa_win_wmme.h. flags currently work for OpenStream but are ignored for IsFormatSupported

17 years agodoccomment for PaAsio_SetStreamSampleRate()
rossb [Wed, 21 Jan 2009 10:20:42 +0000 (10:20 +0000)]
doccomment for PaAsio_SetStreamSampleRate()

17 years agofactored asio sample rate setting code into separate functions. added PaAsio_SetStre...
rossb [Mon, 5 Jan 2009 09:08:44 +0000 (09:08 +0000)]
factored asio sample rate setting code into separate functions. added  PaAsio_SetStreamSampleRate() function.

17 years agocleaned up logic related to theAsioStream singleton pointer (now gets set in OpenStre...
rossb [Mon, 5 Jan 2009 08:59:14 +0000 (08:59 +0000)]
cleaned up logic related to theAsioStream singleton pointer (now gets set in OpenStream and cleared in CloseStream. added callback-completion waiting to StopStream (was only in AbortStream before). cleaned up isStopped/isActive logic

17 years ago cleanup: moved blocking stream asio callback function next to other blocking related...
rossb [Sun, 4 Jan 2009 08:28:42 +0000 (08:28 +0000)]
 cleanup: moved blocking stream asio callback function next to other blocking related code

17 years agoremove extra parameter from debug statement to prevent pointer error
philburk [Mon, 3 Nov 2008 19:31:30 +0000 (19:31 +0000)]
remove extra parameter from debug statement to prevent pointer error

17 years agofixed bug as suggested by Michael allen. This fixes issues with blocking IO on the...
bjornroche [Fri, 24 Oct 2008 14:10:04 +0000 (14:10 +0000)]
fixed bug as suggested by Michael allen. This fixes issues with blocking IO on the mac when using different number of channels for input and output.

17 years agoticket#84
gordon_gidluck [Sun, 5 Oct 2008 15:15:34 +0000 (15:15 +0000)]
ticket#84

17 years agoticket#84
gordon_gidluck [Sun, 5 Oct 2008 15:15:15 +0000 (15:15 +0000)]
ticket#84

17 years agoticket #84. Fix for Cygwin. Added a #define called CREATE_THREAD. Cygwin will call...
gordon_gidluck [Sun, 5 Oct 2008 15:14:25 +0000 (15:14 +0000)]
ticket #84. Fix for Cygwin. Added a #define called CREATE_THREAD. Cygwin will call CreateThread, whereas other dev environments will generate code to call _beginthreadex. endthreadex was handled in the same way.

17 years agoticket#84. Ran into a problem with conversion from CreateFile to _beginthreadex....
gordon_gidluck [Sun, 14 Sep 2008 15:24:58 +0000 (15:24 +0000)]
ticket#84. Ran into a problem with conversion from CreateFile to _beginthreadex. Changing it back for now.

17 years agochange CreateThread to _beginthreadex (related to ticket #84)
gordon_gidluck [Sun, 14 Sep 2008 14:29:34 +0000 (14:29 +0000)]
change CreateThread to _beginthreadex (related to ticket #84)

17 years agochanged CreateThread to _beginthreadex and ExitThread to _endthreadex (related to...
gordon_gidluck [Sun, 14 Sep 2008 14:27:40 +0000 (14:27 +0000)]
changed CreateThread to _beginthreadex and ExitThread to _endthreadex (related to ticket #84)

17 years agochange CreateThread to _beginthreadex (see ticket #84)
gordon_gidluck [Sun, 14 Sep 2008 14:18:17 +0000 (14:18 +0000)]
change CreateThread to _beginthreadex (see ticket #84)

18 years agoAdd __TIME__ to version text.
philburk [Sat, 28 Jun 2008 18:28:07 +0000 (18:28 +0000)]
Add __TIME__ to version text.

18 years agoSupports multiple threads using ASIO by adding CoInitialize(0) and CoUninitialize...
philburk [Sat, 28 Jun 2008 18:27:34 +0000 (18:27 +0000)]
Supports multiple threads using ASIO by adding CoInitialize(0) and CoUninitialize() calls.

18 years agoOSS: clear trigger direction bits at correct time
aknudsen [Thu, 5 Jun 2008 21:13:54 +0000 (21:13 +0000)]
OSS: clear trigger direction bits at correct time

18 years agoalways use __vsnprintf with MSC
rossb [Thu, 15 May 2008 04:35:30 +0000 (04:35 +0000)]
always use __vsnprintf with MSC

18 years agoremoved obsolete darwin compiling instructions
bjornroche [Tue, 13 May 2008 19:10:54 +0000 (19:10 +0000)]
removed obsolete darwin compiling instructions

18 years agotweak svn test
philburk [Tue, 13 May 2008 16:31:34 +0000 (16:31 +0000)]
tweak svn test

18 years agoOrder Unix host api initializers depending on whether we're on Linux
aknudsen [Sun, 30 Mar 2008 21:02:09 +0000 (21:02 +0000)]
Order Unix host api initializers depending on whether we're on Linux

18 years agoAvoid warnings about unused labels
aknudsen [Tue, 25 Mar 2008 20:21:35 +0000 (20:21 +0000)]
Avoid warnings about unused labels

18 years agomoved trunk into place
bjornroche [Thu, 20 Mar 2008 14:24:39 +0000 (14:24 +0000)]
moved trunk into place