Re: AU latency compensation "look-ahead"
Re: AU latency compensation "look-ahead"
- Subject: Re: AU latency compensation "look-ahead"
- From: Marc Poirier <email@hidden>
- Date: Tue, 4 Nov 2003 09:03:37 -0600 (CST)
On Tue, 4 Nov 2003, Urs Heckmann wrote:
>
Hi Andrew,
>
>
this is simple: Yes, you can.
>
>
Just override AUBase::GetLatency(). - It returns a 64bit float with
>
Latency in seconds, not samples.
>
>
Oh... uhm... I think you also have to override AUBase:: SupportsTail ()
>
and return true here.
No, Tail is not related to latency (I wasn't sure about this before, but I
wrote here once about that and it was confirmed). But you still
definitely should override SupportsTail() if your plugin has a predictable
tail time, and then if it's something other than 0 seconds, also override
GetTailTime().
Also, I just wanted to add that, if the amount of latency in your plugin
is something that can change, you can use
PropertyChanged(kAudioUnitProperty_Latency, kAudioUnitScope_Global, 0); to
report that so that the host knows and can accommodate for the new
latency. So far I only know of Spark as a host that will handle these
changes on the fly, although there are some other hosts out there *ehem*
that really should!
Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.