Commit graph portaudio/src/common
Author SHA1 Message Date
Phil Burk
8dc6d59877 Merge branch 'ticket_275_pass_void' into 'master'
Add void argument to Pa_GetVersionInfo()

+1: Anonymous

Merged-on: https://assembla.com/code/portaudio/git/merge_requests/6415893
2018-05-26 04:49:10 +00:00
Phil Burk
dde71d1114 pa_front.c: fix initializationCount_ in Pa_Terminate()
Was decrementing too soon and causing Pa_CloseStream() to fail.
See ticket #260
2016-10-23 14:50:01 -07:00
Phil Burk
3f7248cd00 pa_front: bumped to 19.6.0 2016-09-24 09:02:56 -07:00
Phil Burk
b2f9375237 pa_front: bump version to 19.5.1 for release 2016-09-22 09:29:36 -07:00
Phil Burk
a553478d71 PA_GIT_REVISION: new scripts to replace SVN revision
update_gitrevision.sh should be run before building on Mac or Linux.
2016-09-05 17:03:27 -07:00
Ross Bencina
037e260d64 comment out C99 designated initializer syntax for versionInfo_ initializer. not C89 compatible 2016-08-26 19:42:09 +10:00
Ross Bencina
fce3367c23 remove trailing whitespace from end of lines 2016-08-26 19:33:31 +10:00
Phil Burk
ed463ba658 Normalize all the line endings 2016-05-18 22:13:20 -07:00
gineera
c0c0cb1414 Pa_process: Fix output channel adaption by not skipping the conversion when the host and user number-of-channels are not equal. Reported by Leif Asbrink when using an envy24 soundcard on Linux at it's native Int32 format with 1 or 2 channels. Corresponding fix for input already in r1913. 2015-04-19 18:48:38 +00:00
philburk
199e88fa66 Add Pa_GetVersionInfo()
Add scripts to update pa_svnrevision.h
2015-04-10 04:00:09 +00:00
philburk
cd6b1868de Add version numbering with major.minor.subminor format.
Bump version to 19.5.0
2015-03-03 17:28:15 +00:00
philburk
13c1e731db Add stub to pa_trace.c to eliminate warning.
"make install" was causing a warning if PA_TRACE_REALTIME_EVENTS
was not defined.
2014-01-17 03:45:15 +00:00
gineera
5583cd452b Pa_process: Fix input channel adaption by not skipping the input conversion when the host and user number-of-channels are not equal. The bug manifested when recording mono from a stereo-only device (eg with Alsa hw: devices on some sound-cards), and was reported by the Mixxx team -see https://bugs.launchpad.net/mixxx/+bug/900364. (In the long-term, some refactoring may be preferable.) Also fixed copy-paste typos in comments. 2013-11-18 11:42:27 +00:00
rbencina
2a992efaa8 fixed bug that was causing memory corruption in PA/ALSA when host sample format was lager than user format. e.g. using 16 bit output with a sound card that used 24 bit buffers. the incorrect input zeroer was being used. Thanks to Anders Tornvig for identifying the problem 2013-08-06 08:26:55 +00:00
rbencina
33df37a804 increase upper limit for absurd sample rates from 200000 to 384000 Hz. via Richard from Audacity 2012-12-04 18:39:48 +00:00
philburk
042f67383c Add comment about including source code for ring buffer in app. 2012-10-07 19:00:11 +00:00
robiwan
c5874f23c4 Merged WaveRT branch (excluding stuff pertaining to ticket #169) 2012-02-14 09:32:57 +00:00
philburk
9cdd56f5b4 Implement the Float32 to UInt8 converters.
The loopback test now passes cleanly for the first time on my PreSonus FireStudio.
Added tests for clip and dither flag combinations to loopback.
2011-09-01 22:08:32 +00:00
philburk
b511280f66 Fix #164 by using if instead if ifdef PA_USE_* for unix builds. 2011-08-25 07:17:48 +00:00
rossb
6aa858c0f7 memory barrier change take two 2011-08-18 11:47:28 +00:00
rossb
924b65ed3d added comment about MSVC compiler barrier intrinsics 2011-08-18 11:29:40 +00:00
rossb
48cb6b726c updated memory barrier comment urgh 2011-08-18 11:24:15 +00:00
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