From: rossb Date: Thu, 30 Jun 2011 12:48:08 +0000 (+0000) Subject: fixed regression in r1612 that broke coreaudio non-interleaved callback i/o X-Git-Tag: pa_stable_v19_20111121_r1788~73 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=982dd233f5cb13efc38b07a7dcdbaa603638b47e;p=portaudio fixed regression in r1612 that broke coreaudio non-interleaved callback i/o --- diff --git a/src/hostapi/coreaudio/pa_mac_core.c b/src/hostapi/coreaudio/pa_mac_core.c index 1935dbd..88bb478 100644 --- a/src/hostapi/coreaudio/pa_mac_core.c +++ b/src/hostapi/coreaudio/pa_mac_core.c @@ -1348,7 +1348,7 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi, inputSampleFormat = inputParameters->sampleFormat; /* @todo Blocking read/write on Mac is not yet supported. */ - if( inputSampleFormat & paNonInterleaved ) + if( !streamCallback && inputSampleFormat & paNonInterleaved ) { return paSampleFormatNotSupported; } @@ -1378,7 +1378,7 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi, outputSampleFormat = outputParameters->sampleFormat; /* @todo Blocking read/write on Mac is not yet supported. */ - if( outputSampleFormat & paNonInterleaved ) + if( !streamCallback && outputSampleFormat & paNonInterleaved ) { return paSampleFormatNotSupported; }