Changeset 1311
- Timestamp:
- 01/12/08 13:15:22 (8 months ago)
- Location:
- portaudio/branches/v19-devel/src/hostapi/coreaudio
- Files:
-
- 2 modified
-
pa_mac_core.c (modified) (1 diff)
-
pa_mac_core_blocking.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
portaudio/branches/v19-devel/src/hostapi/coreaudio/pa_mac_core.c
r1304 r1311 315 315 UInt32 isRunning; 316 316 UInt32 size = sizeof( isRunning ); 317 assert( !AudioUnitGetProperty( ci, kAudioOutputUnitProperty_IsRunning, inScope, inElement, &isRunning, &size ) ); 317 OSStatus err; 318 err = AudioUnitGetProperty( ci, kAudioOutputUnitProperty_IsRunning, inScope, inElement, &isRunning, &size ); 319 assert( !err ); 318 320 if( isRunning ) 319 321 return; //We are only interested in when we are stopping -
portaudio/branches/v19-devel/src/hostapi/coreaudio/pa_mac_core_blocking.c
r1304 r1311 122 122 void *data; 123 123 int result; 124 OSStatus err; 124 125 125 126 /* zeroify things */ … … 170 171 } 171 172 172 assert( 0 == PaUtil_InitializeRingBuffer(173 err = PaUtil_InitializeRingBuffer( 173 174 &blio->inputRingBuffer, 174 175 ringBufferSize*blio->inputSampleSizePow2*inChan, 175 data ) ); 176 data ); 177 assert( !err ); 176 178 } 177 179 if( outChan ) { … … 183 185 } 184 186 185 assert( 0 == PaUtil_InitializeRingBuffer(187 err = PaUtil_InitializeRingBuffer( 186 188 &blio->outputRingBuffer, 187 189 ringBufferSize*blio->outputSampleSizePow2*outChan, 188 data ) ); 190 data ); 191 assert( !err ); 189 192 } 190 193 … … 345 348 long toRead; 346 349 long toWrite; 350 long read; 351 long written; 347 352 348 353 /* set flags returned by OS: */ … … 361 366 /* copy the data */ 362 367 /*printf( "reading %d\n", toRead );*/ 363 assert( toRead == PaUtil_WriteRingBuffer( &blio->inputRingBuffer, input, toRead ) ); 368 read = PaUtil_WriteRingBuffer( &blio->inputRingBuffer, input, toRead ); 369 assert( toRead == read ); 364 370 #ifdef PA_MAC__BLIO_MUTEX 365 371 /* Priority inversion. See notes below. */ … … 384 390 /* copy the data */ 385 391 /*printf( "writing %d\n", toWrite );*/ 386 assert( toWrite == PaUtil_ReadRingBuffer( &blio->outputRingBuffer, output, toWrite ) ); 392 written = PaUtil_ReadRingBuffer( &blio->outputRingBuffer, output, toWrite ); 393 assert( toWrite == written ); 387 394 #ifdef PA_MAC__BLIO_MUTEX 388 395 /* We have a priority inversion here. However, we will only have to
