Changeset 1315
- Timestamp:
- 01/22/08 18:02:18 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
portaudio/branches/v19-devel/src/hostapi/coreaudio/pa_mac_core.c
r1312 r1315 129 129 err = PaUtil_GetHostApiRepresentation( &hostApi, paCoreAudio ); 130 130 assert(err == paNoError); 131 if( err != paNoError ) 132 return NULL; 131 133 PaMacAUHAL *macCoreHostApi = (PaMacAUHAL*)hostApi; 132 134 AudioDeviceID hostApiDevice = macCoreHostApi->devIds[device]; … … 318 320 err = AudioUnitGetProperty( ci, kAudioOutputUnitProperty_IsRunning, inScope, inElement, &isRunning, &size ); 319 321 assert( !err ); 322 if( err ) 323 isRunning = false; //it's very unclear what to do in case of error here. There's no real way to notify the user, and crashing seems unreasonable. 320 324 if( isRunning ) 321 325 return; //We are only interested in when we are stopping … … 1829 1833 inNumberFrames, 1830 1834 &stream->inputAudioBufferList ); 1831 /* FEEDBACK: I'm not sure what to do when this call fails */ 1835 /* FEEDBACK: I'm not sure what to do when this call fails. There's nothing in the PA API to 1836 * do about failures in the callback system. */ 1832 1837 assert( !err ); 1833 1838
