cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Instance Methods - 图1 Instance Methods - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Instance Methods | Public 属性 | 属性 | 所有成员列表

CDSoundSource类 参考

CDSoundSource is a wrapper around an OpenAL sound source. 更多…

#import

类 CDSoundSource 继承关系图:

Instance Methods - 图3 <CDAudioTransportProtocol> <CDAudioInterruptProtocol> <CDAudioTransportProtocol> <CDAudioInterruptProtocol>

## Instance Methods
(id) - init:sourceIndex:soundEngine:
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine. 更多…
(id) - init:sourceIndex:soundEngine:
Do not init yourself, get an instance from the sourceForSound factory method on CDSoundEngine. 更多…
- Instance Methods 继承自 <CDAudioTransportProtocol>
(BOOL) - play
Play the audio. 更多…
(BOOL) - pause
Pause the audio, retain resources. 更多…
(BOOL) - stop
Stop the audio, release resources. 更多…
(BOOL) - rewind
Return playback to beginning. 更多…
(BOOL) - play
Play the audio. 更多…
(BOOL) - pause
Pause the audio, retain resources. 更多…
(BOOL) - stop
Stop the audio, release resources. 更多…
(BOOL) - rewind
Return playback to beginning. 更多…
- Instance Methods 继承自 <CDAudioInterruptProtocol>
(BOOL) - mute
Is audio mute. 更多…
(void) - setMute:
If YES then audio is silenced but not stopped, calls to start new audio will proceed but silently. 更多…
(BOOL) - enabled
Is audio enabled. 更多…
(void) - setEnabled:
If NO then all audio is stopped and any calls to start new audio will be ignored. 更多…
(BOOL) - mute
Is audio mute. 更多…
(void) - setMute:
If YES then audio is silenced but not stopped, calls to start new audio will proceed but silently. 更多…
(BOOL) - enabled
Is audio enabled. 更多…
(void) - setEnabled:
If NO then all audio is stopped and any calls to start new audio will be ignored. 更多…
## Public 属性
ALuint _sourceId
ALuint _sourceIndex
CDSoundEngine * _engine
int _soundId
float _preMuteGain
BOOL enabled_
BOOL mute_
## 属性
float pitch
float gain
float pan
BOOL looping
BOOL isPlaying
int soundId
float durationInSeconds
Returns the duration of the attached buffer in seconds or a negative value if the buffer is invalid. 更多…
ALenum lastError
Stores the last error code that occurred. 更多…

详细描述

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.

  • 自从
  • v1.0

Method 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.

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

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

类成员变量说明

- (CDSoundEngine *) _engine

- (float) _preMuteGain

- (int) _soundId

- (ALuint) _sourceId

- (ALuint) _sourceIndex

- (BOOL) enabled_

- (BOOL) mute_

属性说明

- (float) durationInSeconds

readatomicassign

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

- (float) gain

readwritenonatomicassign

- (BOOL) isPlaying

readatomicassign

- (ALenum) lastError

readatomicassign

Stores the last error code that occurred.

Check against AL_NO_ERROR

- (BOOL) looping

readwritenonatomicassign

- (float) pan

readwritenonatomicassign

- (float) pitch

readwritenonatomicassign

- (int) soundId

readwritenonatomicassign


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/audio/ios/CocosDenshion.h
  • CDSoundSource
  • 生成于 2014年 五月 29日 星期四 09:41:43 , 为 cocos2d-x使用 doxygen 1.8.6