Querying whether transport is playing
Querying whether transport is playing
- Subject: Querying whether transport is playing
- From: "email@hidden" <email@hidden>
- Date: Wed, 25 May 2011 15:05:54 +0100
Hi,
In my AudioUnit plug-in to decide whether the host transport is playing or not.
The reason I particularly want to do this is that Logic doesn't pump silence through plug-ins when the transport is stopped, and my plug-in has quite a high latency, so if someone plays some audio through it, and then stops the transport, and starts playing from somewhere else, the plug-in will start by pumping out the "tail" from the last bit of audio it was processing.
I'm trying to use CallHostTransportState to find out if the transport is playing, but that doesn't seem to be a great choice as it only seems to work when called from the audio processing thread, but then that doesn't get called when the transport is stopped.
I have been using a timer to detect when audio hasn't played for half a second, and consider that the transport must have stopped in that case, but that causes a problem for a user who is using BIAS Peak to offline render the effect in his project.
Please could anyone suggest how I should be trying to do this? I suspect there's a much simpler way to do what I'm trying to.
Thanks
Paul
Dr. Paul Tapper
Technical Director
NUGEN Audio
www.nugenaudio.com
NUGEN Audio Ltd, Co. reg. no. 7544311 (England & Wales), Reg. office: 30 Chapel Lane, Leeds, LS6 3BW
This communication and the information contained in it are confidential and may be legally privileged. The content is solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient it is hereby brought to your notice that any disclosure, copying, distribution, or dissemination, or alternatively the taking of any action in reliance on it, is strictly prohibited and may constitute grounds for action, either civil or criminal.
_______________________________________________
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