Chapter    6

Using External Audio Sources

In this chapter, you will see how to use external sources to play more types of audio in your app. By expanding on the audio basics you saw in Chapter 5, this chapter describes how to play music from iTunes and from streaming audio sources, and to play event sounds (short sound effects that are triggered when an event happens, such as pressing a button) in your apps. While implementing these new audio sources, you will see how to reuse the same design patterns you first encountered while playing simple audio files (such as requesting a shared resource, event-driven message handling, and implementing a custom user interface) in other classes, and how to hook extra logic into them to enable your app to ...

Get Beginning iOS Media App 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.