如何在Android中检查麦克风是否已准备就绪

时间:2012-11-01 01:26:45

标签: android audio-recording

我有媒体记录,我需要检查麦克风是否已准备就绪。现在,我可以运行默认录音机并启动我的应用程序。结果,我的应用程序无法访问麦克风,我无法捕捉到这种情况。

当麦克风准备好使用时,你可能知道捕捉情况的一些技巧吗?

11-01 09:36:34.690: ERROR/NvAudioALSAControl(8901): Control 'DRC Switch' cannot get 

element info: -2
11-01 09:36:34.690: ERROR/NvAudioALSAControl(8901): Control 'Left Input PGA Volume' cannot get element info: -2
11-01 09:36:34.690: ERROR/NvAudioALSAControl(8901): Control 'Right Input PGA Volume' cannot get element info: -2
11-01 09:36:34.690: ERROR/NvAudioALSAControl(8901): Control 'Digital Capture Volume' cannot get element info: -2
11-01 09:36:34.690: ERROR/NvAudioALSAControl(8901): Control 'HPF Mode' cannot get element info: -2
11-01 09:36:34.790: ERROR/NvAudioALSAControl(8901): Control 'DRC Switch' cannot get element info: -2
11-01 09:36:34.790: ERROR/NvAudioALSAControl(8901): Control 'Left Input PGA Volume' cannot get element info: -2
11-01 09:36:34.790: ERROR/NvAudioALSAControl(8901): Control 'Right Input PGA Volume' cannot get element info: -2
11-01 09:36:34.790: ERROR/NvAudioALSAControl(8901): Control 'Digital Capture Volume' cannot get element info: -2
11-01 09:36:34.790: ERROR/NvAudioALSAControl(8901): Control 'HPF Mode' cannot get element info: -2

0 个答案:

没有答案