• 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: Did GarageBand stop playing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Did GarageBand stop playing?


  • Subject: Re: Did GarageBand stop playing?
  • From: Pavol Markovič <email@hidden>
  • Date: Tue, 24 Jan 2006 15:50:28 +0100

Hello Daniel,
you can't use Render as a measure of playing or not playing, because AudioUnits have to process buffers even if the transport is not running.


Instead, look for CallHostTransportState() in AUBase.h
There's outIsPlaying parameter, check it if it's working (I'm not sure if GarageBand supports this parameter). Also note, that GarageBand 1.0 does not have this callback at all, so you'll need to check for it. See "TransportState Logic/GarageBand workaround" thread (August 18, 2004) in archives.


Best regards,
Pavol Markovic


On Jan 24, 2006, at 3:20 PM, Daniel Jalkut wrote:


I'm writing an AudioUnit software instrument specifically targeted at GarageBand. I want to show in my configuration UI whether the unit is currently "running" or not - specifically, whether GarageBand is playing or not (I realize it may be an inappropriate assumption that the two are the same).


It seems that I get initialized when I'm set as the generator for a given track. After that, I get "Render" calls repeatedly while GarageBand is playing, but I can't figure out whether "that was the last one." I want this functionality to work whether my track is currently processing MIDI input or not.

Any pointers on how I can reliably detect that I'm "not getting Render calls anymore" - aside from installing my own timer and assuming a certain delay means GB stopped?

Thanks for your help!
Daniel

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


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
References: 
 >Did GarageBand stop playing? (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: Did GarageBand stop playing?
  • Next by Date: AULab & Garageband
  • Previous by thread: Re: Did GarageBand stop playing?
  • Next by thread: Offline AUs
  • Index(es):
    • Date
    • Thread