Hi,
I am using the SystemSound's framework to play sounds in my application. For devices with IOS3 it is working correctly. But recently I've updated the operating system to IOS4 and I am having a strange problem with the volume. Now I can't change the volume of my sounds during the game, it seems that this framework is using the ring volume and I can't change this volume within an application. I have a couple of questions about that.
- Is it the expected behavior or i may have something wrong with my code?
- First, why this is happening with IOS4 devices and not with earlier versions.
- Is there any workaround to fix it without having to use another framework?
The code that i am using is something like this:
SystemSoundID aSoundID;
OSStatus error = AudioServicesCreateSystemSoundID((CFURLRef)aFileURL, &aSoundID);
if (error == kAudioServicesNoError)
self.soundID = aSoundID;
.
.
.
AudioServicesPlaySystemSound(self.soundID);
I would really appreciate your help!
Thanks,
Juan Pablo