If you don't already have a ComponentInstance in hand, I think the call GetComponentInstance() will get it for you.
-Howard
On Jun 16, 2009, at 10:30 AM, Tony Sheng wrote: Hi Bill and all:
Thanks. The sample code did seem is what I want. I included that .h file into my project.
But when I trying to call the function from that file, I am confused by the first parameters the function needs to take in:
CAAudioUnitOutputCapturer(AudioUnit au, CFURLRef outputFileURL, AudioFileTypeID fileType, const AudioStreamBasicDescription &format, UInt32 busNumber = 0)
I am not sure here 'AudioUnit au' really is and when I jump to its definition it defines as : typedef ComponentInstance AudioUnit;// An audio unit is of type ComponentInstance, defined by the Component Manager.
I tried to put my audio unit name for this parameter but it doesn't work cannot go through the complier.
Can you help me with this?
Many thanks
Tony
|