O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Playing Audio

Up to this point, you have seen several ways of manipulating images and video using the iPhone SDK. You will now turn your attention toward audio. There are many ways to control audio on the iPhone OS, with some approaches much easier to learn than others. The range of options is displayed in the following figure:
434
The system sound API is the easiest to use. The Audio Queue Services package in Audio Toolbox is more difficult to use, but it gives you fine-grained control over audio.
In this section, you see how to do two simple things: make the phone vibrate and play a short audio file. If you want to add distortions, record audio, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required