rossb
f22cec3d45
moved memory barriers as per this thread: http://music.columbia.edu/pipermail/portaudio/2011-August/012803.html . use volatile because MSVC Read/WriteBarrier() intrinsics are just compiler barriers, but MSVC will insert memory barriers if you use volatile. see: http://msdn.microsoft.com/en-us/library/ms686355(VS.85).aspx
2011-08-18 11:19:36 +00:00
rossb
e0a057f28e
set defaultHostApiIndex_ to zero when uninitialized
2011-08-18 03:43:51 +00:00
rossb
ebe9c54048
tweaked comment
2011-08-18 03:40:47 +00:00
rossb
58015f7b17
changed default host API logic to use first successfully initialized host api with a defined default input or output device. resolves ticket #49
2011-08-18 03:31:51 +00:00
philburk
edac3c99eb
Fix improper calculation of big buffer sizes. See bug #187
...
This fixes a click heard with big buffers.
2011-07-21 18:44:58 +00:00
rossb
f95c722aad
made ring buffer params const-correct
2011-06-17 08:01:02 +00:00
rossb
cbd24dc45c
renamed PaUtil_GetBufferProcessorInputLatency to PaUtil_GetBufferProcessorInputLatencyFrames and PaUtil_GetBufferProcessorOutputLatency to PaUtil_GetBufferProcessorOutputLatencyFrames. see ticket #161
2011-05-02 17:07:11 +00:00
rossb
2fb11cbabd
support building skeleton host api on windows
2011-03-04 04:12:08 +00:00
rob_bielik
59f8c8975c
Ticket #132
2011-02-17 15:56:04 +00:00
rossb
54aaddf9e3
moved src/common/pa_skeleton.c to src/hostapi/skeleton/pa_hostapi_skeleton.c. updated all build files accordingly.
2011-02-12 10:22:00 +00:00
rossb
a5eb2767c7
fixed stream info inputLatency and outputLatency calculations. PaUtil_GetBufferProcessorOutputLatency returns latency in <frames>, code assumed it was in seconds.
2011-02-12 09:20:26 +00:00
rossb
b4931e7298
removed/cleaned up doxygen @todo items. moved to TRAC
2011-02-02 18:58:17 +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
13a5f4a980
corrected doc comment
2011-02-01 11:18:16 +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
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
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
dmitrykos
1c289f924e
optimized PA processor for case when host and user buffer match by type and size, now host buffer pointer will be passed to user space directly, additional copying of audio input/output data is thus avoided.
...
asio: apply paNonInterleaved flag on host formats for callback mode (required for processor compatibility).
2010-07-10 17:41:25 +00:00
dmitrykos
dbbd94da2c
reverted changes from revisions 1516-1517 due to incorrectly made changes to processor's core which result in corrupted audio in some specific situations
2010-07-09 17:53:52 +00:00
dmitrykos
a612dd6ac6
fixed processor optimization from previous release for non-interleaved host buffers case (for example ASIO)
2010-06-29 20:58:15 +00:00
dmitrykos
4b4a9b5b79
implemented optimization for NonAdaptingProcess processor: avoid copying of input/output from temp user buffer to host buffer by providing host buffer pointer directly to user, e.g. achieving processing of host buffer in place
2010-06-28 21:35:04 +00:00
dmitrykos
6421f964d7
corrected comments to Int24_To_Int16_Dither
2010-04-17 07:43:00 +00:00
dmitrykos
bd2bfe985e
implemented 'Int24_To_Int16_Dither' converter to allow 24-bit audio be played (before was silence for WMME and DirectSound)
2010-04-16 19:08:00 +00:00
dmitrykos
d714962621
wasapi:
...
- fixed int24 Mono to Stereo mixer (affects Mono streams starting in Exclusive mode)
pa_converters:
- avoid using 64-bit integer math for Int24_To_Float32 and Int24_To_Int32 under x64 Posix platforms (long is 64-bit there), now using explicit PaInt32 type
2010-03-25 23:27:27 +00:00
dmitrykos
e4c126aab1
implemented optional log output to Visual Studio Output window if PA_ENABLE_MSVC_DEBUG_OUTPUT is defined, this simplifies debugging of external process if Visual Studio is attached to process
2010-03-10 21:47:01 +00:00
rossb
6bd9c2fd1a
made buffer in PaUtil_DebugPrint local rather than static to avoid multithreaded issues
2009-12-23 05:35:08 +00:00
rossb
0b572e2aa8
added empty memory barrier macros for WINCE thanks to Dmitry Kostjuchenko
2009-12-08 09:17:34 +00:00
bjornroche
c55f47de78
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.
2009-11-18 16:09:05 +00:00
philburk
998020553f
Fixed dither for 64-bit targets.
2009-10-12 21:00:53 +00:00
rossb
a596358a3d
fixed inputBufferAdcTime calculation for AdaptingInputOnlyProcess. patch from Yann.
2009-03-13 16:41:39 +00:00
philburk
e430a7cc36
remove extra parameter from debug statement to prevent pointer error
2008-11-03 19:31:30 +00:00
philburk
c49f234204
Add __TIME__ to version text.
2008-06-28 18:28:07 +00:00
rossb
5a69e3875e
always use __vsnprintf with MSC
2008-05-15 04:35:30 +00:00
bjornroche
c1e1d067d2
moved trunk into place
2008-03-20 14:24:39 +00:00