2

I am using some mp3 files in my android aap. Its volume is very low. How can i amplify its sound by 3 times programmatically.

Chilledrat
  • 2,593
  • 3
  • 28
  • 38
Androider
  • 2,884
  • 5
  • 28
  • 47

2 Answers2

1

If you want to boost the mp3 sound programmatically then it will cost a lot cpu usage, (which for a low end device is a serious matter) and also you have some pre-loaded mp3 to play so my suggestion is to pre-increase the sound volume of those mp3s (using some sound editing software like audacity) and then use those in your app.

orchidrudra
  • 1,172
  • 1
  • 12
  • 30
  • actually the mp3 files are very small in size, less than 20kb each. and we have done same thing in apple (IOS) it workes fine. but i dont know how to do it in android – Androider May 29 '12 at 08:13
  • Any programmatic solution to this problem? – suv Sep 16 '19 at 11:42
0

If you use SoundPool, the play function includes a volume parameter. Does that help? You should boost the sound in the file itself though as @orchidrudra suggests as this will only let you make it quieter.

Edwin Evans
  • 2,726
  • 5
  • 34
  • 47