Re: AuBase::GetLatency()
Re: AuBase::GetLatency()
- Subject: Re: AuBase::GetLatency()
- From: Brian Willoughby <email@hidden>
- Date: Tue, 19 Oct 2004 04:34:39 -0700
[ a question about AuBase::GetLatency().
[
[ When is the host likely/required to call this? During initialisation?
[ Or constantly?
*if* a host wanted to stay abreast of latency changes in its hosted
AudioUnits, I imagine that the proper CoreAudio API mechanism would be to
register for changes using
AudioUnitAddPropertyListener(kAudioUnitProperty_Latency, ...) rather than
constantly calling the same function. Polling is old-skool & really bad on a
multithreaded system.
Using such a callback, the host could know right away when a plug-in changes
its reported latency. However, whether or not the host is designed to be able
to instantly adjust for a different latency is obviously going to vary from
host to host.
Brian Willoughby
Sound Consulting
_______________________________________________
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