• 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: "Angus F. Hewlett" <email@hidden>
  • Date: Mon, 12 Jun 2006 05:33:46 +0100

Hi Earl,

From the crash log, it looks like you're calling the beat-and-tempo proc from your UI thread. DP doesn't like that.

I'm not sure if there's been a ruling from the AU team as to whether it's legal to call that callback from anywhere other than your render method.. it doesn't really make sense to do so (as "current song position" has no meaning in any other context), but OTOH it's not nice of DP to crash if you do.

Workaround:- call the callback only from your render method; cache the values returned if you need to display them on your UI.

Best regards,
      Angus.


Earl Vickers wrote:
Olivier Tristan wrote:

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.

Indeed it does, thanks!!

What I'm finding now is that when I instantiate the plug-in, the debugger console says:

    Plugin Mas Audio Unit Support file 'MasAUSupportEffect.cpp', Line
    259: ASSERT( context != kRegionOpProcContext ) failed


Then it seems to work okay, including the GetBeatAndTempo callbacks, but when I close the plug-in, the debugger hangs. Eventually it unlocks, but when I instantiate the plug-in again, the debugger stops in the middle of MasAUSupportProc::GetBeatAndTempo and says:


    GDB: Program received signal: "EXC_BAD_ACCESS".


Is it possible that as I close the plug-in, the callback is still being processed, and then when the callback returns, there's no plug-in to return to? So this is some kind of thread thing?


Earl
--
The Sound Guy, Inc.
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: HostCallback_GetBeatAndTempo
      • From: William Stewart <email@hidden>
    • Re: HostCallback_GetBeatAndTempo
      • From: Earl Vickers <email@hidden>
References: 
 >Re: HostCallback_GetBeatAndTempo (From: Earl Vickers <email@hidden>)

  • Prev by Date: MIDIReceived and virtual sources...
  • Next by Date: Re: HostCallback_GetBeatAndTempo
  • Previous by thread: Re: HostCallback_GetBeatAndTempo
  • Next by thread: Re: HostCallback_GetBeatAndTempo
  • Index(es):
    • Date
    • Thread