IAddMusic30P
iphone 

所属分类:iPhone/iOS
开发工具:Visual C++
文件大小:421KB
下载次数:4
上传日期:2012-08-05 11:13:54
上 传 者awess
说明:  IPhone编程,sdk3.0新特性,支持读取本机机音乐目录并播放音乐
(IPhone programming, sdk3.0 new features to support the read catalog of music and play the music of the native machine)

文件列表:
IAddMusic30P\AddMusic\AddMusic-Info.plist (977, 2009-05-12)
IAddMusic30P\AddMusic\AddMusic.xcodeproj\project.pbxproj (17531, 2009-05-12)
IAddMusic30P\AddMusic\AddMusic_Prefix.pch (185, 2009-05-12)
IAddMusic30P\AddMusic\Classes\AddMusicAppDelegate.h (2783, 2009-06-10)
IAddMusic30P\AddMusic\Classes\AddMusicAppDelegate.m (2808, 2009-06-10)
IAddMusic30P\AddMusic\Classes\MainViewController.h (4747, 2009-06-10)
IAddMusic30P\AddMusic\Classes\MainViewController.m (26218, 2009-06-10)
IAddMusic30P\AddMusic\Classes\MusicTableViewController.h (3446, 2009-06-10)
IAddMusic30P\AddMusic\Classes\MusicTableViewController.m (6844, 2009-06-10)
IAddMusic30P\AddMusic\main.m (2635, 2009-06-10)
IAddMusic30P\AddMusic\Resources\background.png (198720, 2009-05-12)
IAddMusic30P\AddMusic\Resources\Default.png (145721, 2009-05-12)
IAddMusic30P\AddMusic\Resources\en.lproj\Localizable.strings (3458, 2009-05-19)
IAddMusic30P\AddMusic\Resources\en.lproj\MainView.xib (19135, 2009-05-12)
IAddMusic30P\AddMusic\Resources\en.lproj\MainWindow.xib (10101, 2009-05-12)
IAddMusic30P\AddMusic\Resources\en.lproj\MusicTableView.xib (13291, 2009-05-12)
IAddMusic30P\AddMusic\Resources\no_artwork.png (4952, 2009-05-12)
IAddMusic30P\AddMusic\Resources\Settings.bundle\en.lproj\Root.strings (546, 2009-05-12)
IAddMusic30P\AddMusic\Resources\Settings.bundle\Root.plist (654, 2009-05-19)
IAddMusic30P\AddMusic\Resources\sound.caf (75420, 2009-05-12)
IAddMusic30P\AddMusic\Resources\Settings.bundle\en.lproj (0, 2009-06-10)
IAddMusic30P\AddMusic\Resources\en.lproj (0, 2009-06-10)
IAddMusic30P\AddMusic\Resources\Settings.bundle (0, 2009-06-10)
IAddMusic30P\AddMusic\AddMusic.xcodeproj (0, 2009-06-10)
IAddMusic30P\AddMusic\Classes (0, 2009-06-10)
IAddMusic30P\AddMusic\Resources (0, 2009-06-10)
IAddMusic30P\AddMusic (0, 2009-06-10)
IAddMusic30P (0, 2012-03-18)

AddMusic ========================================================================= 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. The sample's Settings bundle lets you configure one runtime option using the built-in Settings application. You can specify that AddMusic use the iPod music player, which shares state with the built-in iPod application; or the application music player, whose state is independent of the built-in iPod application. Code in the sample handles audio interruptions and audio hardware route changes for application audio. The Media Player framework handles these things automatically for sounds played using iPod library access. To test audio interruption behavior, use the built-in Clock application. Set an alarm that will sound during playback. When the alarm sounds, dismiss it. To test audio hardware route change behavior, plug in or unplug a headset during playback. There's an alert that appears only when application audio is playing and you unplug the headset. The sample is internationalized. See the Localized.strings file in the project's Resources/en.lproj folder. AddMusic shows how to: * Instantiate the iPod music player and the application music player. * Display and dismiss the media item picker. * Get media items chosen by the user. * Set a music player's playback queue. * Display metadata of music chosen by the user, including song title, artist name, and artwork. * Register for, and handle, music player notifications. As part of showing how to mix application sound with iPod library sound, this sample application also shows how to: * Play audio using AV Foundation * Configure and use the application's audio session AddMusic does not demonstrate how to perform media queries. ========================================================================= RELATED INFORMATION: iPod Library Access Guide, June 2009 Media Player Framework Reference, June 2009 Core Audio Overview, November 2008 Audio Session Programming Guide, November 2008 AV Foundation Framework Reference, March 2009 ========================================================================= BUILD REQUIREMENTS: Mac OS X v10.5.7, Xcode 3.1, iPhone OS 3.0 ========================================================================= RUNTIME REQUIREMENTS: iPhone: iPhone OS 3.0 iPod library access is not functional in the Simulator. ========================================================================= PACKAGING LIST: AddMusicAppDelegate.h AddMusicAppDelegate.m The AddMusicAppDelegate class defines the application delegate object, responsible for instantiating the main controller object (defined in the MainViewController class) and adding the application's main view to the application window. MainViewController.h MainViewController.m The MainViewController class defines the controller object for the application. The object helps set up the user interface, responds to and manages user interaction, responds to changes in the state of the muaic player, handles interruptions to the application's audio session, and handles various housekeeping duties. MusicTableViewController.h MusicTableViewController.m The MusicTableViewController class defines the controller object for a table that displays titles of media items chosen by the user. It provides no manipulation of the media items. ========================================================================= CHANGES FROM PREVIOUS VERSIONS: Version 1.0. First version. ========================================================================= Copyright (C) 2009 Apple Inc. All rights reserved.

近期下载者

相关文件


收藏者