Re: HostCallback_GetBeatAndTempo
Re: HostCallback_GetBeatAndTempo
- Subject: Re: HostCallback_GetBeatAndTempo
- From: Olivier Tristan <email@hidden>
- Date: Fri, 09 Jun 2006 19:34:34 +0200
Earl Vickers wrote:
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.
Indeed. My bad.
Concerning the debug problem, you just need to edit the custom target
(Get Info) and put the full path to DP executable
like /Contents/MacOS/Digital Performer there not just path to the bundle
Hope this helps.
--
Olivier Tristan
Ultimate Sound Bank
_______________________________________________
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