如何捕获音频的输出流中的Andr​​oid?音频、Andr、oid

2023-09-08 00:15:47 作者:侵蚀Emotiona°

我在开发一个新手,我想创建Android平台的均衡器。

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

我怎样才能在Android上采集输出音频流?我只需要采取熄灭,从我的应用程序的音频信息。 (我已经搜查www.developers.android.com,我还没有找到任何信息)

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)

推荐答案

目前旗下有没有在Android中录制音频输出(当然,还有的的展台API ,它可以让你抢分,低质量的音频,音频可视化的目的)。 如果你只需要从自己的应用程序应用效果的音频,那么你可以做的记录在内部。也就是说,在您的应用程序,派德codeD音频数据到你的效果进行处理,然后将处理后的数据发送到您的AudioTrack或OpenSL ES缓冲队列。

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.