• 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
RenderCallbacks Disconnecting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RenderCallbacks Disconnecting


  • Subject: RenderCallbacks Disconnecting
  • From: "Erickson, Mark" <email@hidden>
  • Date: Thu, 12 Mar 2009 13:34:35 -0500
  • Acceptlanguage: en-US
  • Thread-topic: RenderCallbacks Disconnecting

Title: RenderCallbacks Disconnecting
I’ve got 3 audiounits in my graph.
    AUFXUnit -> MIXERUnit -> OUTPUTUnit

The following code snippet works with the section commented out.

// begin snippet

    verify_noerr (AUGraphConnectNodeInput (mGraph, myAUFXNode, 0, myMixerNode, 0));
   
                        // set render callbacks
       AURenderCallbackStruct rcbs;
        rcbs.inputProc = &renderInput1;
        rcbs.inputProcRefCon = &d;
        verify_noerr (AudioUnitSetProperty(    myAUFXUnit,
                                kAudioUnitProperty_SetRenderCallback,
                                kAudioUnitScope_Input,
                                0,
                                &rcbs,
                                sizeof(rcbs)));
 /*                              
       AURenderCallbackStruct rcbs2;
        rcbs2.inputProc = &renderInput2;
        rcbs2.inputProcRefCon = &d;
        verify_noerr (AudioUnitSetProperty(    myMixerUnit,
                                kAudioUnitProperty_SetRenderCallback,
                                kAudioUnitScope_Input, // or
kAudioUnitScope_Output
                               0,
                                &rcbs2,
                                sizeof(rcbs2)));
*/                                  
                               
    verify_noerr (AUGraphUpdate(mGraph, NULL) == noErr);
    verify_noerr (AUGraphInitialize(mGraph) == noErr);
    verify_noerr (AUGraphStart(mGraph) == noErr);

// end snippet


However, if I uncomment this, the second RenderCallback functions but the first RenderCallback stops working.
Am I doing something wrong?
Is it possible to have 2 callbacks here?

Thanks
Mark
 _______________________________________________
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

  • Follow-Ups:
    • Re: RenderCallbacks Disconnecting
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Coreaudio-api Digest, Vol 6, Issue 127
  • Next by Date: Re: MusicSequence MusicPlayer API questions
  • Previous by thread: Re: Coreaudio-api Digest, Vol 6, Issue 127
  • Next by thread: Re: RenderCallbacks Disconnecting
  • Index(es):
    • Date
    • Thread