- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件
-
)
- 文件列表
- 文件成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
类 | 枚举 | 变量
CDAudioManager.h 文件参考
#import "CocosDenshion.h"
#import "CDXMacOSXSupport.h"
## 枚举
|
enum | tAudioManagerMode {
kAMM_FxOnly, kAMM_FxPlusMusic, kAMM_FxPlusMusicIfNoOtherAudio, kAMM_MediaPlayback,
kAMM_PlayAndRecord, kAMM_FxOnly, kAMM_FxPlusMusic, kAMM_FxPlusMusicIfNoOtherAudio,
kAMM_MediaPlayback, kAMM_PlayAndRecord
} |
| 音频引擎的不同模式 更多…
|
|
enum | tAudioManagerState {
kAMStateUninitialised, kAMStateInitialising, kAMStateInitialised, kAMStateUninitialised,
kAMStateInitialising, kAMStateInitialised
} |
| 音频引擎的状态值 更多…
|
|
enum | tAudioManagerResignBehavior {
kAMRBDoNothing, kAMRBStopPlay, kAMRBStop, kAMRBDoNothing,
kAMRBStopPlay, kAMRBStop
} |
|
enum | tAudioSourceChannel { kASC_Left = 0, kASC_Right = 1, kASC_Left = 0, kASC_Right = 1 } |
| CDAudioManager 提供两个声道,左声道和右声道 更多…
|
|
enum | tLongAudioSourceState {
kLAS_Init, kLAS_Loaded, kLAS_Playing, kLAS_Paused,
kLAS_Stopped, kLAS_Init, kLAS_Loaded, kLAS_Playing,
kLAS_Paused, kLAS_Stopped
} |
|
枚举类型说明
音频引擎的不同模式
枚举值 |
---|
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
|
枚举值 |
---|
kAMRBDoNothing | |
kAMRBStopPlay | |
kAMRBStop | |
kAMRBDoNothing | |
kAMRBStopPlay | |
kAMRBStop | |
音频引擎的状态值
枚举值 |
---|
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
|
CDAudioManager 提供两个声道,左声道和右声道
枚举值 |
---|
kASC_Left | |
kASC_Right | |
kASC_Left | |
kASC_Right | |
枚举值 |
---|
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.