Reputation: 79
So i have created a roulette app, once the user lands it plays a sound. The problem is that the AudioServicesPlaySystemSound plays even when silent mode is on. Other sounds used acknowledge if silent mode is on, so i am a little confused on why this would be going on.
This code is being called every time the animation gets triggered to land the user on a mark.
code:
AudioServicesPlaySystemSound(self.systemSoundID)
Any idea what i can do to make it work with silent mode for all sounds?
Upvotes: 2
Views: 928
Reputation: 79
Once i switched too
AudioServicesPlayAlarmSound
Im assuming it acts as if the sound is an alarm, and if silent mode is on it wont play whereas the other method plays regardless
Upvotes: 1