Objective-C AVAudioPlayer

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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

What’s this?

You are currently reading Objective-C AVAudioPlayer at Web Builders.


%d bloggers like this: