Unable to mute the microphone in Android

Posted by J Andy on Stack Overflow See other posts from Stack Overflow or by J Andy
Published on 2010-06-15T07:39:16Z Indexed on 2010/06/15 7:42 UTC
Read the original article Hit count: 1179

Filed under:
|

Hi,

I'm working on an app that uses AudioRecord class to get input data from the phone mic. For some reason I'm unable to mute the mic. I have tried with different AudioSources (DEFAULT, MIC and VOICE_UPLINK) when creating the AudioRecord object, but there's no difference in the muting behaviour.

The muting itself, I'm trying to achieve with AudioManager#setMicrophoneMute() method.

Any ideas?

Thanks.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk