Commit graph portaudio/src/hostapi/coreaudio
Author SHA1 Message Date
Phil Burk
315309f60e Mac: test adjustable number of channels. 2016-05-21 17:25:18 -07:00
Phil Burk
110043f842 Fix assert when reading or writing with non-power of 2 channels. 2016-05-18 22:29:45 -07:00
Phil Burk
ed463ba658 Normalize all the line endings 2016-05-18 22:13:20 -07:00
Phil Burk
e18ea33d22 pa_mac_core.c: Removed some comments. Cleaned up logic. 2016-05-16 22:30:28 -07:00
Phil Burk
09588cc5d6 pa_mac_core: stop stream instead of asserting
Bug: 158
2016-05-01 18:10:23 -07:00
rbencina
7f4f7e44cb PA/CoreAudio: fixed copy-pasto: last host error was being associated with paInDevelopment host api not paCoreAudio 2014-11-05 01:03:57 +00:00
bejayoharen
55adee0a90 olivier's device name patch for os x 2014-06-28 16:28:17 +00:00
rbencina
c23e362fcb pa_mac_core.c line 664 fixed incorrect memset size (was using sizeof(ptr) not sizeof(struct type) 2013-08-29 00:36:56 +00:00
philburk
b4a22b91ff Fix ring buffer handling in pa_mac_core.c that caused many spurious paInputOverflow flags.
Fixed size bug when input underflow detected. Code was confused between bytes and elements.
Zero out the beginning of a recording when detecting pops to prevent start of audio from looking like a pop in qa loopback test.
2012-06-25 01:12:29 +00:00
rossb
0a05ae27fe fixed bug in coreaudio host api: suggested latency of zero with fixed user buffer size resulted in min supported buffer size instead of requested user buffer size 2012-01-11 13:22:50 +00:00
rossb
4b2f4dcd37 added function to query core audio buffer size range 2012-01-11 13:03:11 +00:00
rossb
c1390f8c18 fixed regression in r1718 (PA/coreaudio) where PA callback timestamps would be offset by massive latency (frames interpreted as seconds) if the initial query for actual device sample rate failed. This checkin reinstates the use of nominal sample rate as default for latency calculations when actual sample rate query fails. 2011-12-27 08:58:59 +00:00
rossb
f519653f7e CoreAudio: if user specifies framesPerBuffer make sure host buffer is an integer multiple of user buffer 2011-10-20 09:40:12 +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
fa8a45c845 Fix removal of device property change listeners.
This may fix some occasional memory corruption isses we were seeing in the loopback test.
I think the listeners may have gotten called after the stream was freed.
2011-08-18 08:44:03 +00:00
philburk
948250370c Calculate timestamp offsets from device properties.
Combine multiple user buffers in a host buffer to honor longer latency.
2011-07-29 18:22:04 +00:00
philburk
6fa03e953c Fix broken build due to unused variables. Grrr. 2011-07-21 18:47:18 +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
philburk
3aad8c0a9f Fixed broken Mac build by removing unused label. 2011-07-21 17:34:19 +00:00
philburk
e3387a98a7 Improve calculation of default latencies on Mac CoreAudio.
Allow very low buffer sizes if suggestedLatency is low.
Set actual latencies in StreamInfo.
2011-07-21 08:29:26 +00:00
rossb
982dd233f5 fixed regression in r1612 that broke coreaudio non-interleaved callback i/o 2011-06-30 12:48:08 +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
philburk
7aad01a1d3 Added patest_write_sine_nonint to Makefile.
Check for paNonInterleaved on Mac and return paSampleFormatNotSupported.
Fix pa_minlat.c. Linux was complaining about not checking fgets return value.
2011-02-28 23:56:48 +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
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
rossb
446b661f49 fixed missing return statements from latency listener procs 2010-08-30 08:26:58 +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
dmitrykos
4f26695b77 maccore: fixed MacOSX "Snow Leopard" 10.6+ deadlock on sample-rate change submitted by Olivier Tristan
and Stephane Letz with the following details:
"When using paMacCoreChangeDeviceParameters option of PaMacCore_SetupStreamInfo, if the sample rate used in PortAudio do not match the one on the hardware, it automatically switches the hardware samplerate. This functionality stopped working on 10.6 and was blocking the application when trying to change the hardware samplerate (infinite wait) It now works fine on 10.6 as it used to on previous OSX version."
2010-03-18 11:26:47 +00:00
bjornroche
9e8176d71e added and removed dummy property listener as this may be required by OS X 10.6. Also, returned no error on property timeout. 2009-12-02 17:48:05 +00:00
bjornroche
72b656b6a6 cleanup of property change checking and error handling 2009-12-01 15:58:37 +00:00
bjornroche
b7e64ed868 added return char 2009-12-01 15:38:55 +00:00
bjornroche
3a3bef5adb removed some redundant code 2009-12-01 15:38:08 +00:00
bjornroche
8901efea70 fixes for hardware samplerate changes 2009-11-30 21:07:43 +00:00
bjornroche
21a768824d added assert back as suggested by Dmitry Kostjuchenko 2009-11-18 21:07:31 +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
bjornroche
f0279d9be3 added two includes which should not be necessary but seem to help compiling in snow leopard 2009-10-22 17:51:07 +00:00
bjornroche
fe733fde8d 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. 2008-10-24 14:10:04 +00:00
bjornroche
c1e1d067d2 moved trunk into place 2008-03-20 14:24:39 +00:00