是否有可能在Android中共享音频输入(麦克风)流?有可能、麦克风、音频输入、Android

由网友(空白)分享简介:我写了从麦克风录制后台服务记录和分析音频运行的应用程序。当我的应用程序正在运行,我不能用使用麦克风其他应用程序(如手机,录音,等...)。 I am writing an application that runs as a background service recording and analyzing aud...

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

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.

阅读全文

相关推荐

最新文章