AR_Engine_SDK
|
function IXAudioEngine CreateAudio | ( | szfileName | , |
loop | , | ||
volume | |||
) |
创建一个音频源
szfileName | string 音频资源名称 |
loop | boolean 是否循环播放 |
volume | number 音量 |
function IXAudioEngine GetBackgroundMusicCurrentPosition | ( | ) |
IXAudioEngine_GetBackgroundMusicCurrentPosition00
function IXAudioEngine GetBackgroundMusicDuration | ( | ) |
IXAudioEngine_GetBackgroundMusicDuration00
function IXAudioEngine GetBackgroundMusicVolume | ( | ) |
IXAudioEngine_GetBackgroundMusicVolume00
function IXAudioEngine GetEffectsVolume | ( | ) |
IXAudioEngine_GetEffectsVolume00
function IXAudioEngine GetOrCreateAudioListener | ( | ) |
获取音频监听
function IXAudioEngine IsBackgroundMusicPlaying | ( | ) |
IXAudioEngine_IsBackgroundMusicPlaying00
function IXAudioEngine PauseAllEffects | ( | ) |
IXAudioEngine_PauseAllEffects00
function IXAudioEngine PauseBackgroundMusic | ( | ) |
IXAudioEngine_PauseBackgroundMusic00
function IXAudioEngine PauseEffect | ( | soundId | ) |
IXAudioEngine_PauseEffect00
soundId | number |
function IXAudioEngine PlayBackgroundMusic | ( | filePath | , |
loop | |||
) |
IXAudioEngine_PlayBackgroundMusic00
filePath | string |
loop | boolean |
function IXAudioEngine PlayEffect | ( | filePath | , |
loop | , | ||
gain | |||
) |
IXAudioEngine_PlayEffect00
filePath | string |
loop | boolean |
gain | number |
function IXAudioEngine PreloadEffect | ( | filePath | ) |
IXAudioEngine_PreloadEffect00
filePath | string |
function IXAudioEngine RemoveAudio | ( | source | ) |
function IXAudioEngine ResumeAllEffects | ( | ) |
IXAudioEngine_ResumeAllEffects00
function IXAudioEngine ResumeBackgroundMusic | ( | ) |
IXAudioEngine_ResumeBackgroundMusic00
function IXAudioEngine ResumeEffect | ( | soundId | ) |
IXAudioEngine_ResumeEffect00
soundId | number |
function IXAudioEngine RewindBackgroundMusic | ( | ) |
IXAudioEngine_RewindBackgroundMusic00
function IXAudioEngine SetAudioListener | ( | Location | , |
Up | , | ||
Front | |||
) |
设置音频监听
Location | XVECTOR3 |
Up | XVECTOR3 |
Front | XVECTOR3 |
function IXAudioEngine SetBackgroundMusicCurrentPosition | ( | position | ) |
IXAudioEngine_SetBackgroundMusicCurrentPosition00
position | number |
function IXAudioEngine SetBackgroundMusicVolume | ( | volume | ) |
IXAudioEngine_SetBackgroundMusicVolume00
volume | number |
function IXAudioEngine SetEffectsVolume | ( | volume | ) |
IXAudioEngine_SetEffectsVolume00
volume | number |
function IXAudioEngine SetPlayerType | ( | type | ) |
IXAudioEngine_SetPlayerType00
type | number |
function IXAudioEngine StopAllEffects | ( | ) |
IXAudioEngine_StopAllEffects00
function IXAudioEngine StopBackgroundMusic | ( | releaseData | ) |
IXAudioEngine_StopBackgroundMusic00
releaseData | boolean |
function IXAudioEngine StopEffect | ( | soundId | ) |
IXAudioEngine_StopEffect00
soundId | number |
function IXAudioEngine UnloadEffect | ( | filePath | ) |
IXAudioEngine_UnloadEffect00
filePath | string |
IXAudioEngine = {} |
IXAudioEngine XAudioEnginePlayerTypeNative = 0 |
IXAudioEngine XAudioEnginePlayerTypeOpenAL = 0 |
IXAudioEngine XAudioEnginePlayerTypeUninit = 0 |
IXAudioEngine XAudioEnginePlayerTypeUser = 0 |