iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 1.1.1

Posted: 2009-10-01

Build Requirements: Xcode 3.1 or later, Mac OS X v10.5.6 or later

Runtime Requirements: iPhone OS 3.0 or later

View Source Code:

Download Sample Code (“AddMusic.zip”, 425.3K)



Description

AddMusic demonstrates basic use of iPod library access, part of the Media Player framework. You use iPod library access to play songs, audio books, and audio podcasts that are synced from a user's desktop iTunes library. This sample uses the Media Player framework's built-in user interface for choosing music.

AddMusic also demonstrates how to mix application audio with iPod library audio. The sample includes code for configuring application audio behavior using the AVAudioSession class and Audio Session Services.

Document Revision History

Date Notes
2009-10-01Minor changes.
2009-09-16Improved the audio hardware route change callback function.
2009-05-27Demonstrates how to play audio items that are synced from a user's desktop iTunes library.
Did this document help you? Yes It's good, but... Not helpful...