correctly determining IO latency on the ios platform
correctly determining IO latency on the ios platform
- Subject: correctly determining IO latency on the ios platform
- From: Tobias Domhan <email@hidden>
- Date: Tue, 10 May 2011 22:54:21 +0200
Hi there,
I would like to now the ADC and the DAC times of audio data on the iOS platform.
some mails([1], [2]) on this list suggest, that one should use a
combination of kAudioDevicePropertySafetyOffset,
kAudioDevicePropertyBufferFrameSize and kAudioDevicePropertyLatency.
However I'm already stuck with the kAudioDevicePropertyBufferFrameSize
because CoreAudio/AudioHardware.h seems to not be availve on iOS.
For the audio session there exist the properties
kAudioSessionProperty_CurrentHardwareIOBufferDuration and
kAudioSessionProperty_CurrentHardwareOutputLatency.
Can I somehow use them to determine the latency?
The documentation on those is rather vague.
I'm not sure if I can use those at all? If
CurrentHardwareOutputLatency is enough, or if
CurrentHardwareIOBufferDuration must be added? If there are further
properties that should be taken into account.
Any help is appreciated.
Tobias Domhan
[1] http://web.archiveorange.com/archive/v/q7bubSF8yitABnP78If2
[2] http://osdir.com/ml/coreaudio-api/2009-07/msg00151.html
_______________________________________________
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