cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
类 - 图1 类 - 图2)
- 文件列表 - 文件成员

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

| 枚举 | 变量

CDAudioManager.h 文件参考

#import "CocosDenshion.h"

#import "CDXMacOSXSupport.h"

##
class CDAsynchInitialiser
protocol <CDLongAudioSourceDelegate>
class CDLongAudioSource
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. 更多…
class CDAudioManager
CDAudioManager 管理游戏的音频。它用于提供通过CDSoundEngine对象来播放音效的权限。CDAudioManager内部包含两个CDLongAudioSource 对象(左右声道),用来播放长间隔的音频比如背景音乐和叙述性的语音。另外,它来管理同其他app声音之间的切换和交互。 环境要求: 更多…
class CDLongAudioSourceFader
长音频源对象的增益调节器 更多…
class CDBufferManager
让缓冲区和文件名关联起来 更多…
## 枚举
enum tAudioManagerMode { kAMM_FxOnly, kAMM_FxPlusMusic, kAMM_FxPlusMusicIfNoOtherAudio, kAMM_MediaPlayback, kAMM_PlayAndRecord, kAMM_FxOnly, kAMM_FxPlusMusic, kAMM_FxPlusMusicIfNoOtherAudio, kAMM_MediaPlayback, kAMM_PlayAndRecord }
Different modes of the engine. 更多…
enum tAudioManagerState { kAMStateUninitialised, kAMStateInitialising, kAMStateInitialised, kAMStateUninitialised, kAMStateInitialising, kAMStateInitialised }
Possible states of the engine. 更多…
enum tAudioManagerResignBehavior { kAMRBDoNothing, kAMRBStopPlay, kAMRBStop, kAMRBDoNothing, kAMRBStopPlay, kAMRBStop }
enum tAudioSourceChannel { kASC_Left = 0, kASC_Right = 1, kASC_Left = 0, kASC_Right = 1 }
CDAudioManager supports two long audio source channels called left and right. 更多…
enum tLongAudioSourceState { kLAS_Init, kLAS_Loaded, kLAS_Playing, kLAS_Paused, kLAS_Stopped, kLAS_Init, kLAS_Loaded, kLAS_Playing, kLAS_Paused, kLAS_Stopped }
## 变量
NSString *const kCDN_AudioManagerInitialised
Notifications. 更多…

枚举类型说明

enum tAudioManagerMode

Different modes of the engine.

枚举值
kAMM_FxOnly
kAMM_FxPlusMusic 其他app也可以播放音频
kAMM_FxPlusMusicIfNoOtherAudio 只有当前app可以播放音频
kAMM_MediaPlayback 如果其他app正在播放音频,允许它继续播放,取消现在的播放请求
kAMM_PlayAndRecord 播放当前音频 当前音频接管音频输入和输出
kAMM_FxOnly
kAMM_FxPlusMusic Other apps will be able to play audio.
kAMM_FxPlusMusicIfNoOtherAudio Only this app will play audio.
kAMM_MediaPlayback If another app is playing audio at start up then allow it to continue and don't play music.
kAMM_PlayAndRecord This app takes over audio e.g music player app. App takes over audio and has input and output

enum tAudioManagerResignBehavior
枚举值
kAMRBDoNothing
kAMRBStopPlay
kAMRBStop
kAMRBDoNothing
kAMRBStopPlay
kAMRBStop

enum tAudioManagerState

Possible states of the engine.

枚举值
kAMStateUninitialised
kAMStateInitialising 音频管理对象未初始化-不能使用
kAMStateInitialised 音频管理对象正在初始化中-不能使用 音频管理对象已经初始化完成-可以安全使用
kAMStateUninitialised
kAMStateInitialising Audio manager has not been initialised - do not use.
kAMStateInitialised Audio manager is in the process of initialising - do not use. Audio manager is initialised - safe to use

enum tAudioSourceChannel

CDAudioManager supports two long audio source channels called left and right.

枚举值
kASC_Left
kASC_Right
kASC_Left
kASC_Right

enum tLongAudioSourceState
枚举值
kLAS_Init
kLAS_Loaded
kLAS_Playing
kLAS_Paused
kLAS_Stopped
kLAS_Init
kLAS_Loaded
kLAS_Playing
kLAS_Paused
kLAS_Stopped

变量说明

NSString* const kCDN_AudioManagerInitialised

Notifications.