How to capture output stream of audio in Android?

喜欢而已 提交于 2019-12-20 02:35:18

问题


I am a newbie in development and I trying to create an equalizer on Android platform.

How I can capture output audio stream on android? I just need to take audio information that goes out from my application. (I already searched www.developers.android.com and i have not found any information)


回答1:


There's currently no functionality in Android for recording audio output (well, there's the Visualizer API that let's you grab partial, low-quality audio for audio visualization purposes).
If you only need to apply the effect to the audio from your own app then you could do the "recording" internally. I.e., in your app, send the decoded audio data to your effect to be processed, and then send the processed data to your AudioTrack or OpenSL ES buffer queue.



来源:https://stackoverflow.com/questions/14495644/how-to-capture-output-stream-of-audio-in-android

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