Reputation: 2804
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.
Upvotes: 2
Views: 2209
Reputation: 2836
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.
Upvotes: 0
Reputation: 1172
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.
Upvotes: 1