Hi List,
In AudioUnit v2 we could more or less rely on the
HostCallback_GetBeatAndTempo to determine the beat and tempo of host. Now
in AudioUnit v3 (from the Objective C angle) I can't find an equivalent
API. This functionality is required by our AudioUnit, so this is a huge
blocker at the moment.
Any guidance is appreciated.
Thanks
Kevin
I believe you're looking for the AUHostMusicalContextBlock.
/*! @property musicalContextBlock
@brief A callback for the AU to call the host for musical context information.
@discussion
Note that an audio unit implementation accessing this property should cache it in
realtime-safe storage before beginning to render.
Bridged to the HostCallback_GetBeatAndTempo and HostCallback_GetMusicalTimeLocation
callback members in kAudioUnitProperty_HostCallbacks.
*/
@property (NS_NONATOMIC_IOSONLY, copy, nullable) AUHostMusicalContextBlock musicalContextBlock;
HTH
regards,
edward
|