如何捕获音频的输出流中的Andr​​oid? [英] How to capture output stream of audio in Android?

查看:208
本文介绍了如何捕获音频的输出流中的Andr​​oid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发一个新手,我想创建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.

这篇关于如何捕获音频的输出流中的Andr​​oid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆