I combed the AudioManager and couldn’t find any API or setting to switch from stereo to mono (both channels having a signal that’s the sum of the two stereo channels).
Is it possible at all to accomplish this in Android?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a method in the AudioManager class called
setParametersthat might do that. Unfortunately, the API is not very clear about what it does:If we look at the source code for this method in AudioManager.java:
And looking at AudioSystem.java:
Not much information there. It looks like the parameters might be hardware-specific, and I’m not even sure the parameters would do what you’re looking to do.
Are you trying to set this system-wide or just in one app? I assumed system-wide, but if that’s not the case, I’d imagine it would be easier.