cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
Public Member Functions
CDLongAudioSource Class Reference

#import <CDAudioManager.h>

Inherits <CDAudioInterruptProtocol>.

List of all members.

Public Member Functions

(void) - load:
(void) - play
(void) - stop
(void) - pause
(void) - rewind
(void) - resume
(BOOL) - isPlaying

Detailed Description

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.

Since:
v0.99

Definition at line 92 of file CDAudioManager.h.


Member Function Documentation

- (BOOL) isPlaying

Returns whether or not the audio source is playing

- (void) load: (NSString *)  filePath

Loads the file into the audio source

- (void) pause

Pauses the audio source

- (void) play

Plays the audio source

- (void) resume

Resumes playing the audio source if it was paused

- (void) rewind

Rewinds the audio source

- (void) stop

Stops playing the audio soruce


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone API Reference - Generated using Doxygen 1.7.4