Is there any significant delay in initializing AudioTrack on Android?

前端 未结 1 1449
一向
一向 2021-01-22 10:19

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          


        
相关标签:
1条回答
  • 2021-01-22 10:57

    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)).

    0 讨论(0)
提交回复
热议问题