• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another question re AURenderCallback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another question re AURenderCallback


  • Subject: Re: Another question re AURenderCallback
  • From: "B.J. Buchalter" <email@hidden>
  • Date: Sun, 29 Oct 2006 17:36:13 -0500
  • Thread-topic: Another question re AURenderCallback

After you set the callback, you need to pull on the AU with AudioUnitRender.

I think if you combine what you were doing before with this, you will have
it.

Basically, you set up the RenderCallback.

Then, when MSP calls you with the data, you call AudioUnitRender. While
AudioUnitRender is running, your RenderCallback will be called; When you get
called, you supply the audio data that MSP gave you.

Then you take the data that you get back from AudioUnitRender and pass it
back to MSP.

BR,

B.J. Buchalter

Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451


On 10/29/06 5:05 PM, "Michael Norris" <email@hidden> wrote:

> 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



 _______________________________________________
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

References: 
 >Another question re AURenderCallback (From: Michael Norris <email@hidden>)

  • Prev by Date: Another question re AURenderCallback
  • Next by Date: Re: AU surround hosts
  • Previous by thread: Another question re AURenderCallback
  • Next by thread: Re: AU surround hosts
  • Index(es):
    • Date
    • Thread