Re: HostCallback_GetBeatAndTempo
Re: HostCallback_GetBeatAndTempo
- Subject: Re: HostCallback_GetBeatAndTempo
- From: Earl Vickers <email@hidden>
- Date: Fri, 9 Jun 2006 10:15:39 -0700
Title: Re:
HostCallback_GetBeatAndTempo
Olivier Tristan wrote:
You
need to check the value of mHostCallbackInfo.beatAndTempoProc before
calling it.
I don't
think that giving a valid function is mandatory.
Thanks for the suggestion. But this already happens in Apple's
AUBase.h, right?
//
These calls can be used to call a Host's Callbacks. The method returns
-1 if the host
// hasn't
supplied the callback. Any other result is returned by the host.
// As in the API
contract, for a parameter's value, you specify a pointer
// to that data
type. Specify NULL for a parameter that you are not interested
// as this can save work in the host.
/*! @method CallHostBeatAndTempo */
OSStatus
CallHostBeatAndTempo (Float64
*outCurrentBeat, Float64 *outCurrentTempo)
{
return (mHostCallbackInfo.beatAndTempoProc
?
(*mHostCallbackInfo.beatAndTempoProc)
(mHostCallbackInfo.hostUserData,
outCurrentBeat, outCurrentTempo)
:
-1);
}
I haven't been able to try this in the debugger, because XCode
says "No Launchable Executable
Present at Path" when I try to use DP as the
executable.
Earl Vickers
--
The Sound Guy, Inc.
email@hidden
http://www.sfxmachine.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