|
|
Version: 1.1 Posted: 2009-07-29 Build Requirements: iPhone OS 3.0 or later Runtime Requirements: iPhone OS 3.0 or later Download Sample Code (avTouch.zip, 136.0K) |
||||||||
DescriptionavTouch demonstrates basic use of AVFoundation, Core Animation, and Core Graphics Services on the iPhone for basic playback of audio files. The code in avTouch uses AVFoundation to play an audio file containing AAC audio data. The application uses CoreGraphics and OpenGL to display volume meters for the audio being played. This application shows how to: * Create an AVAudioPlayer object from an input audio file. * Use OpenGL and CoreGraphics to display metering levels. * Use Audio Session Services to set an appropriate audio session category for playback. * Use AVFoundation's interruption delegate to pause playback upon receiving an interruption, and to then resume playback if the interruption ends. * Demonstrates technique from performing Fast Forward and Rewind. Document Revision History
|