• 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
Re: HostCallback_GetBeatAndTempo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: HostCallback_GetBeatAndTempo (From: Earl Vickers <email@hidden>)

  • Prev by Date: Re: HostCallback_GetBeatAndTempo
  • Next by Date: Re: Logic Live mode/PDC
  • Previous by thread: Re: HostCallback_GetBeatAndTempo
  • Next by thread: Re: HostCallback_GetBeatAndTempo
  • Index(es):
    • Date
    • Thread