Classes | Enumerations

/Users/ricardoquesada/progs/cocos2d-iphone/CocosDenshion/CocosDenshion/CocosDenshion.h File Reference

#import <UIKit/UIKit.h>
#import <OpenAL/al.h>
#import <OpenAL/alc.h>
#import <AudioToolbox/AudioToolbox.h>
#import "CDConfig.h"
#import "CDOpenALSupport.h"
Include dependency graph for CocosDenshion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CDUtilities
class  CDSoundSource
class  CDAudioInterruptTargetGroup
class  CDAsynchBufferLoader
class  CDBufferLoadRequest
class  CDPropertyModifier
class  CDSoundSourceFader
class  CDSoundSourcePanner
class  CDSoundSourcePitchBender
class  CDSoundEngineFader

Enumerations

enum  tCDInterpolationType { , kIT_SCurve, kIT_Exponential }

Detailed Description

IMPORTANT There are 3 different ways of using CocosDenshion. Depending on which you choose you will need to include different files and frameworks.

SimpleAudioEngine
This is recommended for basic audio requirements. If you just want to play some sound fx and some background music and have no interest in learning the lower level workings then this is the interface to use.

Requirements:

CDAudioManager
CDAudioManager is basically a thin wrapper around an AVAudioPlayer object used for playing background music and a CDSoundEngine object used for playing sound effects. It manages the audio session for you deals with audio session interruption. It is fairly low level and it is expected you have some understanding of the underlying technologies. For example, for many use cases regarding background music it is expected you will work directly with the backgroundMusic AVAudioPlayer which is exposed as a property.

Requirements:

CDSoundEngine
CDSoundEngine is a sound engine built upon OpenAL and derived from Apple's oalTouch example. It can playback up to 32 sounds simultaneously with control over pitch, pan and gain. It can be set up to handle audio session interruption automatically. You may decide to use CDSoundEngine directly instead of CDAudioManager or SimpleAudioEngine because you require OS 2.0 compatibility.

Requirements:

Definition in file CocosDenshion.h.


Enumeration Type Documentation

Interpolation type

Enumerator:
kIT_SCurve 

Straight linear interpolation fade.

kIT_Exponential 

S curved interpolation.

Exponential interpolation

Definition at line 340 of file CocosDenshion.h.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1