Problem:
As you may have heard, Android does not support low latency audio. What I mean by low latent sound is that you should receive sound signals from the microphone and play sound without a significant amount of time between (for example, 5-7 ms).
I tried the old java (with AudioRecord and AudioTrack) and the "new" OpenSL ES. They are terrible and make the application unusable. The issue has been well documented here. BTW, iOS API can produce a delay of 5-7 ms.
Search for workarounds:
But I'm still trying to make a low latency sound. Something like this answer describes.
“However, I was able to achieve this satisfactorily by writing my own code that made moving inside and accessing the low-level audio playback API only to play the final mixed output. Higher audio playback levels in the .Net Compact Framework are theoretically capable of polyphony, but in practice, they work terribly (a lot of glitches, stuttering and distortion).
Does this make sense for Android? The answer is discouraging.
So my question. Is there really no way to achieve a 10-minute audio delay with Android?
Honestly, I do not expect a solution in the near future, but I just want one great mind to have an answer to this problem.
Tae-sung shin
source share