Chapter    9

Sweet, Sweet Music

Choosing and playing music from your iPod library is a great way to add some toe-tapping fun to your app. You can also add your own music and audio effects to actions and games. Both are relatively easy to do, and I’ll get to those straightaway. But don’t stop reading this chapter at that point. Sound in iOS apps exists in a larger world of competing audio sources, real-world events, and an ever-changing configuration of hardware. Making audio work nicely in this demanding, and sometimes complex, environment is the real test of your iOS development skills. This chapter covers the following:

  • Choosing tracks from the iPod music library
  • Playing music in the iPod music library
  • Obtaining the details (title, artist, ...

Get Learn iOS 8 App Development, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.