views:

216

answers:

2

Hi,

I have got an audio file which is quite quiet. I'd am playing it using AVAudioPlayer, but I can barely hear anything, especially without headphones.

Is there a way to increase the volume of an audio record?

Thanks.

+1  A: 

You have a volume property for that. If even at it's highest setting the volume is still too low, I think you should edit the media file in some kind of music editor (i.e. Audacity) and increase the volume there.

RaYell
The problem is that I need to do it programatically in my app.
Ilya
You can try setting the volume to value greater then 1 but I think Iphone will ignore it because it could damage your speakers if you could set this to anything you want.
RaYell
A: 

player.volume = 2.0;

The doco says that volume is "nominally" between 0 and 1.0,
which seems to suggest that you can overdrive it.

Good luck, and try not to accidentally deafen users.

Rhythmic Fistman