April 25, 2009 § Leave a comment
This gives a summary of AVAudioPlayer. AVAudioPlayer is part of AVFoundation framework. AVFoundation framework is only available after iPhone OS 2.2.
- play multiple audio simultaneously
- provide each audio volume control
- allow to mix audio
- support 2 extra format .mp3, m4a in addition to .caf, .aif., and .wav
- play loop
- read audio play time
- select one channel for mono or two channels for stereo audio
- read audio duration
- read audio output level
To play multiple audio simultaneously, create a new AVAudioPlayer object for each sound. Design your audio player like a multitrack mixing board. Each AVAudioPlayer object is one track.