Re: Getting individual stream latency on a AUHAL object
Re: Getting individual stream latency on a AUHAL object
- Subject: Re: Getting individual stream latency on a AUHAL object
- From: Brian Willoughby <email@hidden>
- Date: Thu, 25 Aug 2011 12:43:15 -0700
On Aug 25, 2011, at 04:23, Stéphane Letz wrote:
Assuming stream latency is "sometimes" different from 0 (which
seems not the case on 3 different cards I've just tested see
previous " Measuring Input/Output latencies" mail), how can it be
read when the real device is accessed using a AUHAL object?
Basically we "map" the real audio device on a set on N non-
interleaved mono channels and we use the
kAudioOutputUnitProperty_ChannelMap property to setup the channel
mapping to be used. So I guess it should be possible to get the
stream latency of any mapped one, directly by accessing the
appropriate property of AUHAL.
Can this be done?
I believe that the best you can do is ask the AUHAL object to report
what device it is attached to, and then get all of the latency
information from the device object. I seem to recall that the AUHAL
object does not pass through all of these latency details, although
there might be a summary latency - check the headers! The intention
is that you get the information directly from the source.
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