Commit graph

195 commits

Author SHA1 Message Date
rossb
7d0edd2714 removed reference to todo list from main doxygen page 2011-02-02 19:31:27 +00:00
rossb
b4931e7298 removed/cleaned up doxygen @todo items. moved to TRAC 2011-02-02 18:58:17 +00:00
rossb
931a003f52 cleanup: changed if() to switch() 2011-02-02 18:22:43 +00:00
rossb
76c3e0f31c clarified documentation for PaTime and Pa_GetStreamTime 2011-02-02 17:29:26 +00:00
rossb
edf4166f07 removed old doxygen @todo comments 2011-02-01 13:11:22 +00:00
rossb
aa80b24004 removed obsolete doxygen @todo comments 2011-02-01 13:09:10 +00:00
rossb
a04c0e6e6f referenced trac ticket #113 in doxy todo item 2011-02-01 13:03:45 +00:00
rossb
6d04ded9c3 referenced trac tickets #35 and #112 in pa_converters.c todo items 2011-02-01 12:58:26 +00:00
rossb
e286d2c10a removed doxygen TODO items from pa_asio implementation. migrated them to new trac tasks: #103, #104, #105, #106, #107, #108, #109, #110, #111 2011-02-01 12:52:14 +00:00
rossb
13a5f4a980 corrected doc comment 2011-02-01 11:18:16 +00:00
rossb
e9bf04f563 simplify doc tweak 2011-02-01 11:17:36 +00:00
dmitrykos
272adbefc7 wasapi: allow mono input/output streams be created when Blocking interface is used. Thanks to Chris (c319chris@aol.com) for providing the patch. 2011-01-03 18:33:32 +00:00
philburk
de42615b5a test svn access 2010-12-28 23:03:56 +00:00
dmitrykos
8b6f0610b6 wasapi: fixed audio device not released to other applications if WASAPI Exclusive stream is stopped but not yet closed. Bug does not affect Shared mode streams. Fixed possible object's leakage in situation when WASAPI thread encountered an error and stopped and user decided to start stream again without prior closing it. 2010-12-26 16:36:52 +00:00
dmitrykos
41645b30d5 wasapi: fixed audio gain is decreased by 2 when audio stream is opened for capturing and 1 (Mono) channel selected, this bug occurs only if non-Stereo input source used (mono mic). 2010-12-26 16:17:56 +00:00
dmitrykos
db36090a98 corrected Int24_To_Int16_Dither and implemented Int24_To_Int8_Dither, Float32_To_Int24 to use all 'double' types for optimal code generation (not mixing double with floats) 2010-12-26 15:58:30 +00:00
rossb
ce6c4dfba6 disable dither conversion when host input format is 32 bit and user format is 24 bit. the converter for this is unimplemented anyway, and the host won't ever be sending us better than 24 bit data, so no need to dither it. 2010-12-26 06:43:58 +00:00
dmitrykos
ba1def6126 coreaudio: fixed incorrect value type used with OSAtomicOr32 API (xrunFlags were casted from long to unsigned int) which results in value truncation on systems where 'long' is 64 bits 2010-12-25 13:26:17 +00:00
rossb
5b6dcbe59b doc tweaks 2010-12-11 03:11:35 +00:00
philburk
3d61d394b8 First checkin of new loopback unit test for PortAudio. 2010-11-12 19:14:25 +00:00
richard_ash
148784f3c7 Commit fix for crash during full-duplex operation with PulseAudio. Reported by Al Dimond, fix proposed by Ross Bencina, acked by Dmitry Kostjuchenko. This fixes a bug with Dmitry's zero-copy optimisations. Fix works in Audacity (where the bug was found), so comitting upstream. 2010-11-12 17:16:21 +00:00
rossb
af11234ead updated documentation main page and added api overview page to documentation 2010-11-07 23:57:36 +00:00
dmitrykos
f1e8193ae1 wasapi:
- using WAVE_FORMAT_PCM for mono/stereo 8/16-bit stream configuration to avoid possible driver refusal upon audio client creation
 - modified default speaker mask for 5.1 and 7.1 configuration to _SURROUND (correct) versions, added default speaker configuration for 2.1, 4.1, 6.1 cases
2010-11-07 08:23:51 +00:00
dmitrykos
7b3d837bbb wasapi: fixed audio stream failing to open on Windows 7 in Exclusive mode if suggestedLatency parameter is 0 and user framesPerBuffer is less than 3 milliseconds 2010-11-06 01:16:34 +00:00
richard_ash
eba3864887 Remove frome the list of directories created by configure a directory that no
longer has any contents and is not needed any more. Original patch by Benjamin Drung (Ubuntu)
2010-10-29 20:09:54 +00:00
rossb
0fec134103 clarified some doc comments in pa_ringbuffer.h including one typo that said <write> instead or <read> 2010-10-24 10:21:35 +00:00
rossb
eca7d0493c patch from Rafaël Carré: clear SHARED_FLAGS in configure.in when --disable-shared is used to avoid libtool setting -shared and breaking the build. 2010-10-22 02:30:38 +00:00
rossb
3128c79528 patch from Richard Ash: updated Makefile.in to set SHELL variable expected by newer versions of libtool (was breaking in builds on Debian without this) 2010-10-22 02:23:33 +00:00
dmitrykos
e5b04a89da wasapi: fixed capturing (Input stream) if Polling mode is used, ProcessInputBuffer was broken erroneously returning AUDCLNT_S_BUFFER_EMPTY and thus breaking Input thread. 2010-10-20 17:32:04 +00:00
dmitrykos
738b8ad327 wasapi: improved audio quality stability in Shared mode if framesPerBuffer (from user-side) value is lower than 10 milliseconds, now even 1 frame provides stable quality. Exclusive mode is also affected by this improvement. 2010-10-20 17:00:54 +00:00
bjornroche
d496a7bc75 Fixes issue where ringbuffer elements were of size 1, which might have lead to split data. This does not resolve the issue for ringbuffer use in blio. 2010-10-16 18:48:29 +00:00
dmitrykos
96b86da500 alsa: fixed Segmentation fault due to dangling pointer left by snd_lib_error_set_handler() call which set callback pointer to ALSA during PaAlsa_Initialize call. Segmentation fault happens only if application dynamically unloaded PortAudio while still using ALSA through other means, then next ALSA error which causes invocation of ALSA error handling callbacks would cause Segmentation fault. Bug reported in: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563192, and re-announced by Phil Burk on 15.10.2010. 2010-10-15 20:39:23 +00:00
rossb
e47e43deb8 improved documentation of paNoInterleaved flag 2010-10-14 03:34:34 +00:00
dmitrykos
abe05d6d7f jack: fixed segmentation fault caused by PA Jack implementation if Pa_Initialize is called after Pa_Terminate due to bad pointer usage by realloc() call which was previously freed() in Pa_Terminate call. Many thanks to RJ Ryan for reporting, debugging and providing the solution for this bug. 2010-09-22 06:33:47 +00:00
dmitrykos
b6e9030f6f alsa: avoid SetApproximateSampleRate() excessive log messages when Pa_IsFormatSupported API method is used to test for supported sample rates and some of them are not supported by device 2010-09-20 16:23:30 +00:00
rossb
446b661f49 fixed missing return statements from latency listener procs 2010-08-30 08:26:58 +00:00
dmitrykos
52a9ce20ad wasapi:
- fixed compile under MinGW64 compiler (gcc version 4.5.1 20100702)
 - cleaned portability typedefs, thanks to MinGW64 project added KS headers which also work well for MinGW32 (tested: gcc version 4.5.0)
wdmks:
 - made it possible to use additional WDM/KS info for WMME/DS back-ends by defining PAWIN_USE_WDMKS_DEVICE_INFO for compilation by MinGW32/64 compilers if you include modified headers located in '\src\hostapi\wasapi\mingw-include'
2010-08-24 17:44:00 +00:00
rossb
c0d24d3905 Replaced broken PaStreamCallbackTimeInfo calculations with calculation based on CoreAudio ioProc timestamps. Notes: 1. inputBufferAdcTime is not computed correctly for all cases (eg full duplex with/without ring buffer). 2. This patch needs to be reviewed for the case where device and AUHAL sample rates differ (ie SRC is used) and if input and output sample rates differ. See FIXMES 2010-08-20 11:47:02 +00:00
rossb
cf124140d6 tweaked buffer settings in wmme low level parameters example 2010-08-14 06:22:26 +00:00
dmitrykos
9c7974c76c wasapi:
- fixed alignment missing for host buffer if overall buffer size was set to less than 3ms that results in device timeout
 - advanced Event driven mode and extended the range of host buffer size which can operate in this mode up up to 20.66 ms, e.g. your device buffer size will vary in range 3 - 20.66 ms, if goes above then Poll driven mode is switched on automatically
2010-08-06 20:25:07 +00:00
dmitrykos
24c304db21 wasapi:
- fixed compilation by MinGW, was failing due to double ambiguous jack describing enums used in KS
ds:
 - fixed compile by MinGW, was failing due to missing casts to LPVOID * and usage of UINT instead of DWORD by PaWinDsStream::previousPlayCursor
2010-08-03 21:02:52 +00:00
dmitrykos
2b8866cd3d alsa:
- trying to fix specific case of stream failing to open when min/max period is specifying fixed value with +/-1 difference, we try choosing middle then which seems to be aligned to 2
2010-08-02 10:37:18 +00:00
dmitrykos
d9d12f6b82 alsa:
- improved host buffer size calculation: taking into account obligatory double buffering utilising formula (userFrames + MAX( userFrames, SR * suggestedLatency)), aligning host buffer with user buffer size, additional testing of host buffer size to avoid failure on snd_pcm_hw_params_set_period_size_near, additional logging for more convenient debugging
2010-07-30 10:44:18 +00:00
dmitrykos
55ca7ea7d5 alsa:
- fixed seg.fault (caused by assertion) when using non-interleaved host i/o, now paNonInterleaved flag is provided to PaUtil_InitializeBufferProcessor to signal processor about host format being non-interleaved
2010-07-29 18:54:45 +00:00
dmitrykos
60468d02f1 jack:
- fixed assertion in PA processor logics by informing processor that host format is non-interleaved (using paNonInterleaved flag) in PaUtil_InitializeBufferProcessor
 - fixed rare timeout on WaitCondition reported earlier by increasing timeout from 1 second to 10 minutes
2010-07-29 06:29:41 +00:00
dmitrykos
f2badb7725 wasapi:
- added functionality to enumerate jacks and their description
 - added example which demonstrates jacks enumeration technique
Thanks Reid Bishop for providing the idea for this extended functionality and patch with implementation.
2010-07-23 10:04:03 +00:00
dmitrykos
e540964ffc wasapi: - fixed frames preloading for buffer mode - paUtilFixedHostBufferSize 2010-07-20 21:01:07 +00:00
dmitrykos
3ba45b5966 wasapi: - fixed occasional bug (affects Windows 7 mostly) which is related to stream start failure due to exceeding buffer size when preloading data for output stream in exclusive mode (thanks Ralph Irving for noticing and reporting this bug) 2010-07-20 19:01:17 +00:00
dmitrykos
f6d6f4e955 wasapi:
- fixed usage of uninitialized variable (Input)
2010-07-15 23:27:21 +00:00
rossb
a0eb0545a5 added pragma to auto-link winmm.lib when compiling with msvc 2010-07-14 06:45:25 +00:00