I'm still struggling to get the TimePitchAU to work in my AUGraph.
Setting the stream format through the following OSStatus errors: -10877 (input stream) & -10868 (output stream).
both of these log as 'null' with the following code:
- (void) printErrorMessage: (NSString *) errorString withStatus: (OSStatus) result {
char resultString[5];
UInt32 swappedResult = CFSwapInt32HostToBig (result);
bcopy (&swappedResult, resultString, 4);
resultString[4] = '\0';
NSString *myNSString = [NSString stringWithUTF8String:resultString];
NSLog (
@"*** %@ error: %@",
errorString,
myNSString
);
}
There must be some way to get a more useful result from the error codes?
thanks,
rob
Some Core Audio errors are 4CC's some aren't. Just search the .h files (in this case AUComponent.h) using whatever method you prefer to find this information.
kAudioUnitErr_FormatNotSupported = -10868
kAudioUnitErr_InvalidElement = -10877
As comared to:
kAudioConverterErr_FormatNotSupported = 'fmt?'
etc.
edward
|