
Sound
For the game I have just finished developing I have a few very short and simple sound effects. Right away as I added the first one it was clear I would have to add some way of controlling the volume because the sound was inappropriately loud at whatever setting I had my phone on at the time.
I didn’t want to make the user go to the settings page and pull a slider up or down just to change the volume when there’s a perfectly good hardware volume rocker on the side of the iPhone, but when I pressed the volume rocker in my game, I was changing the volume of the phone ringer. So how have other people done it I wondered? Surely there had to be a way to hook into the volume rocker press event using Cocoa Touch. (more…)
