]> Repos - portaudio/commitdiff
fixed regression in r1612 that broke coreaudio non-interleaved callback i/o
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 30 Jun 2011 12:48:08 +0000 (12:48 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 30 Jun 2011 12:48:08 +0000 (12:48 +0000)
src/hostapi/coreaudio/pa_mac_core.c

index 1935dbde452b15ec516fd422d6784aed27427ae3..88bb478c68ee30fc158b90643e5c3288eaa8e160 100644 (file)
@@ -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;
                }