Chapter     11

Add Sound to Your Game

No game is complete without sound. This includes both background music and sound effects. Playing a sound effect in any OS is a pretty simple thing, but making sure your application or game plays nice with the rest of the iOS system can be a little tricky. If you consider that the game should allow users to play their own music, respond to interrupts and notifications, and honor the Silence switch, you can see that there is more to it than just playing an audio track.

In this chapter we will explore how to make sure your game is a good citizen on iOS, as well as the basics for playing sound. We will not be covering advanced sound concepts or OpenAL, as those are sophisticated topics and we don’t have the ...

Get Beginning iOS 6 Games Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.