I have an app in which I use an AudioTrack in streaming mode to play dynamically generated audio. The app doesn\'t have to respond instantaneously to inputs, s
You should take into account the buffersize you passed along into the AudioTrack creation.
final int minBufSize = AudioTrack.getMinBufferSize(Application.PLAYRATE,
AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT);
out=new AudioTrack(AudioManager.STREAM_MUSIC, Application.PLAYRATE,
AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT, minBufSize,
AudioTrack.MODE_STREAM);
extraLatencyFrames = minBufSize/4;