fixed regression in r1612 that broke coreaudio non-interleaved callback i/o

This commit is contained in:
rossb 2011-06-30 12:48:08 +00:00
commit 982dd233f5

View file

@ -1348,7 +1348,7 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
inputSampleFormat = inputParameters->sampleFormat; inputSampleFormat = inputParameters->sampleFormat;
/* @todo Blocking read/write on Mac is not yet supported. */ /* @todo Blocking read/write on Mac is not yet supported. */
if( inputSampleFormat & paNonInterleaved ) if( !streamCallback && inputSampleFormat & paNonInterleaved )
{ {
return paSampleFormatNotSupported; return paSampleFormatNotSupported;
} }
@ -1378,7 +1378,7 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
outputSampleFormat = outputParameters->sampleFormat; outputSampleFormat = outputParameters->sampleFormat;
/* @todo Blocking read/write on Mac is not yet supported. */ /* @todo Blocking read/write on Mac is not yet supported. */
if( outputSampleFormat & paNonInterleaved ) if( !streamCallback && outputSampleFormat & paNonInterleaved )
{ {
return paSampleFormatNotSupported; return paSampleFormatNotSupported;
} }