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

#import <CocosDenshion.h>

Inherits <CDAudioTransportProtocol>, and <CDAudioInterruptProtocol>.

List of all members.

Public Member Functions

(id) - init:sourceIndex:soundEngine:

Properties

float durationInSeconds
ALenum lastError

Detailed Description

CDSoundSource is a wrapper around an OpenAL sound source. It allows you to manipulate properties such as pitch, gain, pan and looping while the sound is playing. CDSoundSource is based on the old CDSourceWrapper class but with much added functionality.

Since:
v1.0

Definition at line 289 of file CocosDenshion.h.


Member Function Documentation

- (id) init: (ALuint)  theSourceId
sourceIndex: (int)  index
soundEngine: (CDSoundEngine *)  engine 

Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine


Property Documentation

- (float) durationInSeconds [read, assign]

Returns the duration of the attached buffer in seconds or a negative value if the buffer is invalid

Definition at line 307 of file CocosDenshion.h.

- (ALenum) lastError [read, assign]

Stores the last error code that occurred. Check against AL_NO_ERROR

Definition at line 290 of file CocosDenshion.h.


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