Re: Did GarageBand stop playing?
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