I had the same problem, but if you change the sound volume in the system using the buttons, all the sounds in the system will be changed along with your application. I found this very annoying. The solution is to use AVAudioPlayer instead of AudioServices: as easy, but more versatile. And there you can fine tune the volume for each sound, programmatically.
NSURL *soundurl = [[NSBundle mainBundle] URLForResource: @"mysound" withExtension: @"caf"]; AVAudioPlayer *mySoundPlayer =[[AVAudioPlayer alloc] initWithContentsOfURL:soundurl error:&error]; mySoundPlayer .volume=0.4f;
Nightcoder
source share