I am trying to pass through the audio samples obtained at the MIC to the speaker using AudioRecord and AudioTrack. Here is the code:
public class MainActivity
I am debugging a similar delay, and while I don't have the complete answer yet, it appears that the AudioManager is introducing the delay in the setMode call (am.setMode(AudioManager.MODE_IN_COMMUNICATION)).