AR_Engine_SDK
|
function IXAudioEngine CreateAudio | ( | szfileName | , |
loop | , | ||
volume | , | ||
sourceRelative | |||
) |
创建一个3D音频源
szfileName | string 音频资源名称 |
loop | boolean 是否循环播放 |
volume | number 音量 |
sourceRelative | boolean |
function IXAudioEngine GetBackgroundMusicCurrentPosition | ( | ) |
获取背景音乐当前播放进度
function IXAudioEngine GetBackgroundMusicDuration | ( | ) |
获取背景音乐总时长
function IXAudioEngine GetBackgroundMusicVolume | ( | ) |
获取背景音乐音量
function IXAudioEngine GetEffectMaxNum | ( | ) |
IXAudioEngine_GetEffectMaxNum00
function IXAudioEngine GetEffectsVolume | ( | ) |
获取音效音量
function IXAudioEngine GetOrCreateAudioListener | ( | ) |
获取音频聆听者
function IXAudioEngine IsBackgroundMusicPlaying | ( | ) |
背景音乐是否正在播放
function IXAudioEngine PauseAllEffects | ( | ) |
暂停所有音效
function IXAudioEngine PauseBackgroundMusic | ( | ) |
暂停背景音乐播放
function IXAudioEngine PauseEffect | ( | soundId | ) |
暂停音效播放
soundId | number 音效ID |
function IXAudioEngine PlayBackgroundMusic | ( | filePath | , |
loop | |||
) |
播放背景音乐
filePath | string 文件路径 |
loop | boolean 是否循环播放 |
function IXAudioEngine PlayEffect | ( | filePath | , |
loop | , | ||
gain | |||
) |
播放音效
filePath | string 音效文件路径 |
loop | boolean 是否循环播放 |
gain | number 音量0~1 |
function IXAudioEngine PreloadAudio | ( | filePath | , |
callback | |||
) |
@manual xelua_XEngine_IXAudioEngine_PreloadAudio_manual IXAudioEngine_PreloadAudio_manual
filePath | string |
callback | std::function<void(xbool, std::string)> |
function IXAudioEngine PreloadBackgroundMusic | ( | filePath | ) |
IXAudioEngine_PreloadBackgroundMusic00
filePath | string |
function IXAudioEngine PreloadEffect | ( | filePath | ) |
IXAudioEngine_PreloadEffect00
filePath | string |
function IXAudioEngine RemoveAudio | ( | source | ) |
function IXAudioEngine ResumeAllEffects | ( | ) |
恢复所有音效播放
function IXAudioEngine ResumeBackgroundMusic | ( | ) |
恢复背景音乐播放
function IXAudioEngine ResumeEffect | ( | soundId | ) |
恢复音效播放
soundId | number 音效ID |
function IXAudioEngine RewindBackgroundMusic | ( | ) |
回滚背景音乐
function IXAudioEngine SetAudioListener | ( | Location | , |
Up | , | ||
Front | |||
) |
设置3D音频聆听者
Location | XVECTOR3 |
Up | XVECTOR3 |
Front | XVECTOR3 |
function IXAudioEngine SetBackgroundMusicCurrentPosition | ( | position | ) |
设置背景音乐当前播放进度
position | number 毫秒 |
function IXAudioEngine SetBackgroundMusicVolume | ( | volume | ) |
设置背景音乐播放音量
volume | number 0~1 |
function IXAudioEngine SetEffectMaxNum | ( | n | ) |
IXAudioEngine_SetEffectMaxNum00
n | number |
function IXAudioEngine SetEffectsVolume | ( | volume | ) |
设置音效音量 0~1
volume | number |
function IXAudioEngine SetPlayerType | ( | type | ) |
IXAudioEngine_SetPlayerType00
type | number |
function IXAudioEngine StopAllEffects | ( | ) |
停止所有音效播放
function IXAudioEngine StopBackgroundMusic | ( | releaseData | ) |
停止播放背景音乐
releaseData | boolean 是否释放资源 |
function IXAudioEngine StopEffect | ( | soundId | ) |
停止音效播放
soundId | number 音效ID |
function IXAudioEngine UnloadEffect | ( | filePath | ) |
IXAudioEngine_UnloadEffect00
filePath | string |
IXAudioEngine = {} |
IXAudioEngine XAudioEnginePlayerTypeNative = 0 |
IXAudioEngine XAudioEnginePlayerTypeOpenAL = 0 |
IXAudioEngine XAudioEnginePlayerTypeUninit = 0 |
IXAudioEngine XAudioEnginePlayerTypeUser = 0 |