The method bellow captures on slice of sound and saves it:
MediaRecorder.setOutputFile(PATH);
I want to stream sound. So I need capture sound frame by framef to send across the network. How I can do it?
How 开发者_如何学CI can capture sound frame by frame?
I found one class enable to do this. AudioRecord. http://developer.android.com/reference/android/media/AudioRecord.html
this class capture de sound and put it in a buffer in memory, so you can use this buffer to send by network in livestream or whatever you want.
精彩评论