AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
- Subject: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
- From: Christopher Liscio <email@hidden>
- Date: Tue, 13 Oct 2009 15:24:24 -0400
I've been trying to track down a bug in my code, which boils down to a
call to AudioUnitRender() returning kAudioUnitErr_InvalidPropertyValue
(-10851).
I'm calling AudioUnitRender() on a generic output AU so I can write
the rendered samples to a file using ExtAudioFile. I query the output
AU's MaximumFramesPerSlice so I know what to pass into inNumberFrames.
If I play with the inNumberFrames parameter, to reduce the number of
frames requested, then I can get the function to succeed. However,
I'm not convinced that inNumberFrames is my problem---I would expect
kAudioUnitErr_TooManyFramesToProcess (-10874) to be returned.
So why am I seeing -10851 as the return value? Should I be instead
scrutinizing the AudioBufferList that's passed into the ioData
parameter, or the inTimeStamp (which is correctly set to 0 in this
case, as the first call fails), or something else entirely?
Thanks,
Chris Liscio
http://supermegaultragroovy.com
Learn _your_ music with Capo: http://capoapp.com
_______________________________________________
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