audiotrack: add a circular buffer of 2seconds
Depending on device and audio format, AudioTrack can't hold an audio buffer big enough. This commit adds a circular buffer and a thread that will play the data to AudioTrack coming from this circular buffer. This commit also decrease the AudioTrack internal buffer size.
Showing
Please register or sign in to comment