I'm trying to figure out some latency issues with the Android AudioTrack
, and documentation is very scarce. Two question I have in particular are
Does an
AudioTrack
object need its buffer full before it starts playing audio, which would indicate that minimum latency one can get in (minimum buffer length) / (sampling rate)? Does it alternatively start playing immediately the first chunk of samples have been given to it? Is there a way to check how full the buffer is before it starts playing?Secondly, when exactly does
AudioTrack
block?