在PCM Android开装置的整体音频输出 [英] android get device overall audio output in pcm

查看:251
本文介绍了在PCM Android开装置的整体音频输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法拦截或者只是阅读的Andr​​oid设备的音频输出?

Is there any way to intercept or just-read the audio output in android device?

我需要从内部myActivity读取PCM的整个音频输出,包括后台的媒体播放器应用程序,声音从电话,MediaPlayer的istances内myACtivity等等,应有尽有,那将通过扬声器播放。其实,如果有可能单独阅读,将是巨大的,以及。

I need to read the whole audio output in PCM from inside myActivity, including media player application in background, voice from calls, MediaPlayer istances inside myACtivity, etc., everything that's going to played by speakers. Actually, if it was possible to read them separately, would be great as well.

我试着用 AudioRecord ,给它的audioSource参数每隔一定发现 MediaRecorder.AudioSource ,没有运气,我应该尝试不同的audioSources?

I tried with AudioRecord, giving it as audioSource parameter every constant found in MediaRecorder.AudioSource with no luck, should I try different audioSources?

它是一个如此低级的任务,必须在本机层处理的?

Is it a so low-level task that has to be handled within native layer?

推荐答案

的的可视化类是有帮助的。我用它来播放立即播放音频这里

The visualizer class is helpful. I use it to playback immediately played audio here.

这声音来自于质量很低,但是,所以它只能用于可视化真的很好。

This audio comes in very low quality, however, so it's only really good for visualization.

这篇关于在PCM Android开装置的整体音频输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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