0

I'm using mediaplayer to set my volumes. I understand 0.0f is silent and 1.0f is full volume. Is there any way I can get the music to play louder than it's 100% volume programmatically?

 mPlayer.setVolume(2.0f, 2.0f);

Seems to just keep it still at 1.0f volume

Pam
  • 78
  • 7
  • 1
    While I don't know much about Android specifically, this may not be a good idea. Many digital audio formats quite literally have a maximum amplitude and increasing the amplitude any louder results in clipping or overflow. – Radiodef Jun 05 '17 at 23:31
  • Why do you want to bypass my default settings and make me deaf? – Olivier Grégoire Jun 26 '17 at 09:23
  • @OlivierGrégoire Haha, because each song I imported into my app play at different volumes so this is my ghetto way of equalizing everything – Pam Jun 26 '17 at 09:25

2 Answers2

0

If 1.0 is full volume, then 2.0 is the same as 1.0

If they were different, then 1.0 would not be the full volume.

In other words, I'm pretty sure it's not possible to do that.

0

1.0 is full volume and going over it will not change anything

Pam
  • 78
  • 7