CDSoundSource is a wrapper around an OpenAL sound source.
More...
#import <CocosDenshion.h>
|
(id) | - init:sourceIndex:soundEngine: |
| Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine. More...
|
|
(id) | - init:sourceIndex:soundEngine: |
| Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine. More...
|
|
var | - init:sourceIndex:soundEngine: |
| Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine. More...
|
|
local | - init:sourceIndex:soundEngine: |
| Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine. More...
|
|
(BOOL) | - play |
| Play the audio. More...
|
|
(BOOL) | - pause |
| Pause the audio, retain resources. More...
|
|
(BOOL) | - stop |
| Stop the audio, release resources. More...
|
|
(BOOL) | - rewind |
| Return playback to beginning. More...
|
|
(BOOL) | - play |
| Play the audio. More...
|
|
(BOOL) | - pause |
| Pause the audio, retain resources. More...
|
|
(BOOL) | - stop |
| Stop the audio, release resources. More...
|
|
(BOOL) | - rewind |
| Return playback to beginning. More...
|
|
(BOOL) | - mute |
| Is audio mute. More...
|
|
(void) | - setMute: |
| If YES then audio is silenced but not stopped, calls to start new audio will proceed but silently. More...
|
|
(BOOL) | - enabled |
| Is audio enabled. More...
|
|
(void) | - setEnabled: |
| If NO then all audio is stopped and any calls to start new audio will be ignored. More...
|
|
(BOOL) | - mute |
| Is audio mute. More...
|
|
(void) | - setMute: |
| If YES then audio is silenced but not stopped, calls to start new audio will proceed but silently. More...
|
|
local | - setMute: |
| If YES then audio is silenced but not stopped, calls to start new audio will proceed but silently. More...
|
|
(BOOL) | - enabled |
| Is audio enabled. More...
|
|
(void) | - setEnabled: |
| If NO then all audio is stopped and any calls to start new audio will be ignored. More...
|
|
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
- (id) init: |
|
(ALuint) |
theSourceId |
sourceIndex: |
|
(int) |
index |
soundEngine: |
|
(CDSoundEngine *) |
engine |
|
|
| |
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine.
- (id) init: |
|
var |
theSourceId |
sourceIndex: |
|
var |
index |
soundEngine: |
|
var |
engine |
|
|
| |
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine.
- (id) init: |
|
local |
theSourceId |
sourceIndex: |
|
local |
index |
soundEngine: |
|
local |
engine |
|
|
| |
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine.
- (id) init: |
|
(ALuint) |
theSourceId |
sourceIndex: |
|
(int) |
index |
soundEngine: |
|
(CDSoundEngine *) |
engine |
|
|
| |
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine.
- (id) init: |
|
var |
theSourceId |
sourceIndex: |
|
var |
index |
soundEngine: |
|
var |
engine |
|
|
| |
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine.
- (id) init: |
|
local |
theSourceId |
sourceIndex: |
|
local |
index |
soundEngine: |
|
local |
engine |
|
|
| |
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine.
- (float) durationInSeconds |
|
readatomicassign |
Returns the duration of the attached buffer in seconds or a negative value if the buffer is invalid.
Returns the duration of the attached buffer in seconds or a negative value if the buffer is invalid.
Returns the duration of the attached buffer in seconds or a negative value if the buffer is invalid.
Stores the last error code that occurred.
Check against AL_NO_ERROR
The documentation for this class was generated from the following files: