Search code examples
androidandroid-audiomanager

Set media left/right volume separately?


I would like to override the media left and right volume setting separately as a whole.

It does not seem possible to set the left and right volume separately using AudioManager.setStreamVolume().
I noticed it is possible though to set it with MediaPlayer.setVolume() or SoundPool.play() but I would like to override the whole system media settings so the stereo balance would be kept among the different music players and applications.

I'm not really familiar with Android so I would welcome all advices, tips that could help me achieve this.

ps: I am working on Android 2.3.4. and I would not mind if this needs to go through root rights.


Solution

  • Left / right volume adjustment for system / user is not available in the public API. It's only only available on app level, using the methods you mentioned.