In my application a sound is triggered by a button click, but the sound is relatively quiet and requires me to manually increase the volume on my phone to hear. Is there a way to increase the volume so that it get's louder quicker? Our plays louder by default?
Edit: the set volume function didn't have an effect on the overall loudness without physically changing the volume on my phone. Am I doing something wrong or have the wrong values
you can use setVolume
method
mediaPlayer.setVolume(0.09f , 0.09f);//0,09f = 90% of volume
public void setVolume (float leftVolume, float rightVolume)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.