• 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
Host callbacks - providing tempo from my host - what am I doing wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Host callbacks - providing tempo from my host - what am I doing wrong?


  • Subject: Host callbacks - providing tempo from my host - what am I doing wrong?
  • From: Eagle Offshore <email@hidden>
  • Date: Fri, 29 Jul 2011 15:49:49 -0700

I have a host.  I'm installing host callbacks into my audio units and getting no errors, but the units never call them and in some cases (Amplitube being one) the unit displays a status that the host is not providing tempo information.

Code:

HostCallbackInfo cb = { _host, HCallback_GetBeatAndTempo, HCallback_GetMusicalTimeLocation, HCallback_GetTransportState };
            ComponentResult result = [self setGlobalProperty: kAudioUnitProperty_HostCallbacks element: 0 value: &cb size: sizeof(cb)];

where

-(ComponentResult) setGlobalProperty:(AudioUnitPropertyID)prop element:(UInt32)e value:(void*)v size:(UInt32)size 
{
return [self setProperty:prop scope:kAudioUnitScope_Global element:e value:v size:size];
}

The result code indicates that the call succeeded.  Do I have the scope wrong or something?  Because the functions specified in the HostCallbackInfo never get called.

Thanks for any hints.
-Todd Blanchard

 _______________________________________________
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: Re: Grand Central Dispatch in audio render callback
  • Next by Date: Re: Grand Central Dispatch in audio render callback
  • Previous by thread: Transferring data through mic port
  • Next by thread: Apple RocketRaid 644 drivers for Lion
  • Index(es):
    • Date
    • Thread