aurioTouch2 error message and FFT
aurioTouch2 error message and FFT
- Subject: aurioTouch2 error message and FFT
- From: blake miller <email@hidden>
- Date: Wed, 29 May 2013 12:19:56 -0500
I'm getting an error in the log using the aurioTouch2 sample code from Apple. The line of code throwing it is:
static OSStatus PerformThru(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData)
{
// .. a bunch of code
err = AudioConverterConvertComplexBuffer(THIS->audioConverter, inNumberFrames, ioData, THIS->drawABL);
if (err) {
printf("AudioConverterConvertComplexBuffer: error %d\n", (int)err);
return err;
}
}
The error message is:
AudioConverterConvertComplexBuffer: error 1768846202
This supposedly means the input and output buffers are not the same size. But upon inspecting the size, they look the same:
NSLog(@"%i", (unsigned int)(*ioData).mBuffers[0].mDataByteSize);
NSLog(@"%i", (unsigned int)(*THIS->drawABL).mBuffers[0].mDataByteSize);
Any ideas? This is the sample code taken directly from the Apple site. I'm totally new to iOS, so forgive my nubeness.
Also, the FFT feature of the app doesn't work (at least not in the 6.1 simulator). I see that it tries to draw the spectrum, but then the lines just disappear off the top of the screen, and what is left is a single line at the right of the screen.
Thank you for your help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden