Another question re AURenderCallback
Another question re AURenderCallback
- Subject: Another question re AURenderCallback
- From: Michael Norris <email@hidden>
- Date: Mon, 30 Oct 2006 11:05:00 +1300
Another quick question regarding AURenderCallback.
Is there any reason why the following code, which executes perfectly
without error, would still fail to actually get the AU calling
myRenderProc? (I've stripped all the error checking code out, but I
do take pains to ensure that all the vars and error codes are fine).
Note that myAU is not part of an AUGraph, nor is it attached to any
output unit. Is that OK? (I don't actually want to hear the output of
the AU, I just want its output supplied to me in a buffer). Do I also
need to attach a render callback to the output scope of the AU? Or do
I just use the AudioUnitRender call inside the input render callback?
(As you can see, I'm still trying to understand the documentation...)
err = OpenAComponent(comp,&myAU); // comp is a valid Audio Unit,
chosen by the user
// check err
result = AudioUnitInitialize(myAU);
// check result
input.inputProc = (AURenderCallback) myRenderProc;
input.inputProcRefCon = self;
result = AudioUnitSetProperty (myAU,
kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
0, &input, sizeof(input));
// check result
michael
_______________________________________________
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