Is there any way to force the Android hardware volume buttons to control the media volume. Something like the native call
If a sound effect is playing in my game, the volume buttons control the media volume. However, if no sound effect is playing, the buttons control the ringtone volume. As I’m only using very short sound effects it is very difficult to control the volume and users won’t know to press the buttons when a sound is playing.
This was tested on a device running Lollipop and it also happens in the AudioTest example (it makes more sense in that context though).
Any help would be much appreciated.