这是来自 logcat:
W/AudioPolicyManagerALSA( 169): startInput() input 152 failed: other input already started..
E/AudioRecord(10665): start() status -38
I/myAPP(10665): [myAPP] Opening the microphone went fine...
这是我的应用程序和“Hi-Q MP3 Recorder”(来自 Android 商店)之间的互操作问题。录音机正在后台录制麦克风音频,我启动我的应用程序来录制麦克风音频。
AudioPolicyManagerALSA 告诉我麦克风正在使用中,但消息不会通过 AudioRecord 传播到 openSL(因为它应该,对吗?)。如您所见,AudioRecord 也知道正在使用的麦克风!但是openSL什么也没告诉我!
当您使用 openSL 音频 API 时,如何检测麦克风是否正在使用?
这是一个已知的错误?