CDLongAudioSource Class Reference
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
-
audioSourcePlayer
property -
audioSourceFilePath
property -
numberOfLoops
property -
volume
property -
delegate
property -
backgroundMusic
property -
– load:
Loads the file into the audio source
-
– play
Plays the audio source
-
– stop
Stops playing the audio soruce
-
– pause
Pauses the audio source
-
– rewind
Rewinds the audio source
-
– resume
Resumes playing the audio source if it was paused
-
– isPlaying
Returns whether or not the audio source is playing
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