AudioRecord : How can I use a common buffer to use it for processing and storing?

此生再无相见时 提交于 2019-12-05 20:17:44
sinisha

I suppose that in your C code N is the number of shorts in inBuff ant that is the third parameter of the function process. And why do you use audioRecorder.count/ Short.SIZE * Byte.SIZE as third parameter. Shouldn't it be just audioRecorder.count. AudioRecorder's read() method returns the number of shorts read if you user buffer oh shorts as input parameter.

You could also check this SO question to see what line of code give the exception.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!