Yeah, if you don't explicitly the format for output scope / bus 0, you'll get a default value.
Once you've built your graph, how about you do:
AudioStreamBasicDescription outFormat = {}; OSErr err = AudioUnitGetProperty (outputUnit, kAudioUnitPropertyStreamFormat, kAudioUnitScope_Output, 0, &outFormat);
Then set a breakpoint after this and inspect outFormat in the debugger. In particular, look at the value of mFormatFlags and see if kAudioFormatFlagIsNonInterleaved bit (1 << 5, aka 0x20) is set. That'll help you figure out if the AudioBufferList you use should have one AudioBuffer or two.
Just a shot, but I've had problems with -50 on AudioUnitRender multiple times that turned out to be having the wrong number of AudioBuffers in my ABL.
--Chris
On Mar 4, 2013, at 6:17 AM, David Blake < email@hidden> wrote: I notice you say the outputUnits output scope though, I am only setting the input scope - could this be the problem?
Thanks for any insight you can give!
|