Android-我可以从混音器中获取要播放的音频数据吗? [英] Android - Can I get the audio data for playback from the audio mixer?

查看:65
本文介绍了Android-我可以从混音器中获取要播放的音频数据吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想捕获在Android手机上播放的音频.

I want to capture the audio playing on android phones.

对于语音呼叫音频源,我可以使用AudioRecord来实现.但是我不知道有什么方法可以获取其他音频源(例如,其他应用正在播放的音乐).

As for voice call audio source, I can do it by using AudioRecord. But I don't know are there any ways to get other audio sources (for example, the music other app is playing).

谢谢.

推荐答案

对于语音通话音频源,我可以使用AudioRecord来实现

As for voice call audio source, I can do it by using AudioRecord

仅当语音音频源"是指麦克风时.

Only if by "voice call audio source" you mean the microphone.

但是我不知道有什么方法可以获取其他音频源(例如,其他应用正在播放的音乐).

But I don't know are there any ways to get other audio sources (for example, the music other app is playing).

如果设备处于免提模式,则可以通过麦克风捕获它.

If the device is in speakerphone mode, you can capture it via the microphone.

否则,您无权访问其他应用的音频输出.

Otherwise, you have no rights to access other apps' audio output.

这篇关于Android-我可以从混音器中获取要播放的音频数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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