Hi,

Audio Track has a API to query the latency *AudioTrack::latency()*

This latency is calculated with the equation

mLatency = afLatency + (1000*mFrameCount) / sampleRate;

where mFrameCount and sampleRate  are parameters given in AudioTrack
initilzation.
*afLatency* is the latency obtained from the alsa driver.
The second part of the equation is significantly a big number.

Does anyone know how AudioFlinger/AudioTrack is adding to the latency ?
How buffering is done at the framework level before giving it to the drivers
?

Regards,
Sambhav

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to