Inherits from NSObject
Conforms to AVAudioPlayerDelegate
CDAudioInterruptProtocol
Declared in CDAudioManager.h

Overview

CDLongAudioSource represents an audio source that has a long duration which makes it costly to load into memory for playback as an effect using CDSoundEngine. Examples include background music and narration tracks. The audio file may or may not be compressed. Bear in mind that current iDevices can only use hardware to decode a single compressed audio file at a time and playing multiple compressed files will result in a performance drop as software decompression will take place.

Tasks

Properties

audioSourceFilePath

audioSourcePlayer

backgroundMusic

delegate

numberOfLoops

volume

Instance Methods

isPlaying

Returns whether or not the audio source is playing

- (BOOL)isPlaying

Declared In

CDAudioManager.h

load:

Loads the file into the audio source

- (void)load:(NSString *)filePath

Declared In

CDAudioManager.h

pause

Pauses the audio source

- (void)pause

Declared In

CDAudioManager.h

play

Plays the audio source

- (void)play

Declared In

CDAudioManager.h

resume

Resumes playing the audio source if it was paused

- (void)resume

Declared In

CDAudioManager.h

rewind

Rewinds the audio source

- (void)rewind

Declared In

CDAudioManager.h

stop

Stops playing the audio soruce

- (void)stop

Declared In

CDAudioManager.h