Re: Latency
Re: Latency
- Subject: Re: Latency
- From: Brian Willoughby <email@hidden>
- Date: Tue, 28 Dec 2010 10:45:48 -0800
On Dec 28, 2010, at 09:27, Gregory Wieber wrote:
After more digging, I found kAudioUnitPropery_PresentationLatency
in AudioUnitProperties.h . I haven't been able to find any
detailed documentation, but have found one ore two mentions of it
on the mailing lists. This seems like what I need for accurately
scheduling MIDI events in the future, so I'll give it a try. If
anyone has used this with an Audio Graph setup, and cares to offer
advice on implementation, I'd greatly appreciate it.
I recall reading elsewhere, possibly about a similar HAL property,
that the latency may vary during runtime. Is this something I need
to keep an eye on? Is there a proper way of doing so that won't
become a bottleneck? (Checking the property constantly that is...)
In general, the proper way of handling any variance in CoreAudio is
to register for Property changes. I'm sure you can just register
kAudioUnitProperty_PresentationLatency and then you will only need to
run your update code exactly once for each change.
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
References: | |
| >Re: Latency (From: Gregory Wieber <email@hidden>) |