Here is some generic error handling code that may help decode the error. You will have
This code is based on the source example from Chris Adamson's book "learning core audio"
printf(@"%s error %ld X %4.4s", operation, error, (unsigned int)error, (char*)&error);
char str[20];
// see if it appears to be a 4-char-code
*(UInt32 *)(str + 1) = CFSwapInt32HostToBig(error);
if (isprint(str[1]) && isprint(str[2]) && isprint(str[3]) && isprint(str[4])) {
str[0] = str[5] = '\'';
str[6] = '\0';
} else
// no, format it as an integer
sprintf(str, "%d", (int)error);
}
printf("%s error:%s", operation, str);