I have a problem with my android app, when I run on a kindle fire 7" with Dolby active there is a flaw in the sound, but when this option is disabled the problem disappears.
I'm using MediaPlayer to play long audio files, i cannot use AudioPool because these are background sounds, i'm already using SoundPool to play effects.
There is a way to programmatically detect if Dolby system is active or not on Android application?
There is a way to make MediaPlayer accept multichannel?
Sorry for my bad english :p
I found a way to set the property "dolby.ds.state" programmatically, but this caused a BIG problem, so DON'T DO THAT!
This way is:
System.setProperty("dolby.ds.state", "off");
When I did that, the property was applied but only when rebooted the device, after it done I changed the menu option usually by the device still kept getting the value set programmatically.
If you've done the same stupid thing, I've found a way to resolve it, run the following code and reset the device:
Properties sysProps = System.getProperties();
sysProps.remove("dolby.ds.state");
System.clearProperty("dolby.ds.state");