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
-
audioSourcePlayerproperty -
audioSourceFilePathproperty -
numberOfLoopsproperty -
volumeproperty -
delegateproperty -
backgroundMusicproperty -
– load:Loads the file into the audio source
-
– playPlays the audio source
-
– stopStops playing the audio soruce
-
– pausePauses the audio source
-
– rewindRewinds the audio source
-
– resumeResumes playing the audio source if it was paused
-
– isPlayingReturns whether or not the audio source is playing
Instance Methods
isPlaying
Returns whether or not the audio source is playing
- (BOOL)isPlayingDeclared In
CDAudioManager.hload:
Loads the file into the audio source
- (void)load:(NSString *)filePathDeclared In
CDAudioManager.h