是否有可能在Android中共享音频输入(麦克风)流? [英] Is it possible to share audio input (Microphone) stream in Android?

查看:2507
本文介绍了是否有可能在Android中共享音频输入(麦克风)流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了从麦克风录制后台服务记录和分析音频运行的应用程序。当我的应用程序正在运行,我不能用使用麦克风其他应用程序(如手机,录音,等...)。

I am writing an application that runs as a background service recording and analyzing audio recorded from the microphone. When my app is running I can't use other apps that use the microphone (e.g. phone, voice recording, etc...).

我的问题是 - 有没有办法分享在Android上的麦克风流?也许使用NDK?如果没有,是否有可能接收的指示(如BroadcastIntent)另一个应用程序是需要麦克风?

My question is - Is there a way to share the microphone stream in Android? Maybe by using the NDK? If not, is it possible to receive an indication (e.g. a BroadcastIntent) that another app is requiring the microphone?

推荐答案

简单的答案是NO,这仅仅是因为录音的方法是同步的。因此,两个或更多的资源不能尝试它simantenously。这样做有时可能会强制关闭应用。

Simple Answer would be "NO" , This is just because Audio Recording Method is synchronized. So Two or more resources can not attempt it simantenously. Doing so might sometime force close the applicatio.

这篇关于是否有可能在Android中共享音频输入(麦克风)流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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