• 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
fileplayerAU with callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fileplayerAU with callback


  • Subject: fileplayerAU with callback
  • From: Robert Carroll <email@hidden>
  • Date: Tue, 25 Feb 2014 14:06:10 -0500

Hi,

I am trying to restructure my audiograph to add a callback between the fileplayerAU and the mixerAU.

So far, I am building the graph as before, but not connecting the node from the fileplayer output to the mixer input bus. I'm setting the callback on the mixer bus as follows:

    AURenderCallbackStruct filePlayerCallbackStruct;
    filePlayerCallbackStruct.inputProc        = &filePlayerCallback;
    filePlayerCallbackStruct.inputProcRefCon  = soundStructArray;
    
    UInt32 busNumber = 0;
    
    NSLog (@"Registering the render callback with mixer unit input bus %u", busNumber);
        // Set a callback for the specified node's specified input
    result = AUGraphSetNodeInputCallback (
                                          processingGraph,
                                          mixerNode,
                                          busNumber,
                                          &filePlayerCallbackStruct
                                          );
    
    if (noErr != result) {[self printErrorMessage: @"AUGraphSetNodeInputCallback" withStatus: result]; return;}
 
In the callback function I am using

    renderErr = AudioUnitRender(fileplayerUnit, ioActionFlags, 
inTimeStamp, bus1, inNumberFrames, ioData);
if (renderErr < 0) {
return renderErr;

With this graph structure, setting the kAudioUnitProperty_ScheduledFileRegion on the fileplayer fails. If I revert to the normal node connection, it works.

Do I need to explicitly set the ASBD on the mixer input bus? 

any suggestions would be appreciated.

thanks

Robert Carroll
RSM Records
Toronto
http://www.rsmrecords.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

  • Prev by Date: Maximum number of automatable parameters in AU
  • Next by Date: iOS: Reverb + Remote IO - how do I configure?
  • Previous by thread: Maximum number of automatable parameters in AU
  • Next by thread: iOS: Reverb + Remote IO - how do I configure?
  • Index(es):
    • Date
    • Thread