This latency is a fixed value, not a real latency for audio data path. In fact, it's a total buffer size.
在 2010年11月30日星期二UTC+8下午3时54分11秒,Sambhav写道: > > 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 --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
