Hi!
On one hand, I have a MPMusicPlayerController
playing music, on the other, I play sound effects like this:
NSString *sound_path=[[NSBundle mainBundle] pathForResource:@"snd_special_explode" ofType:@"caf"];
CFURLRef url =(CFURLRef)[NSURL fileURLWithPath:sound_path];
SystemSoundID specialExplode;
AudioServicesCreateSystemSoundID(url,&specialExplode);
AudioServicesPlaySystemSound(specialExplode);
Now, when playing music, I change the volume and it says "headphones". When music is off the volume says "ringer (headphones)".
This are actually two different volumes which can be set to different values from each other. And when playing the music the sounds use the "headphones" volume, and when music is off they use the "ringer (headphones)" volume, which means that the sound effects are played with a different volume depending on the music on/off state.
How can I have just one volume for my app??