AR_Engine_SDK
|
#include <XUIAudioComponent.h>
函数 | |
function XUIAudioComponent | Create (pNode) end |
function XUIAudioComponent | Create () end |
function XUIAudioComponent | SetAudioPath (path) end |
function XUIAudioComponent | GetAudioPath () end |
function XUIAudioComponent | PlayAudio () end |
function XUIAudioComponent | StopAudio (release) end |
function XUIAudioComponent | PauseAudio () end |
function XUIAudioComponent | ResumeAudio () end |
function XUIAudioComponent | IsAudioPlaying () end |
function XUIAudioComponent | SetVolume (fVolume) end |
function XUIAudioComponent | GetVolume () end |
function XUIAudioComponent | SetLoop (bLoop) end |
function XUIAudioComponent | IsLoop () end |
function XUIAudioComponent | GetDuration () end |
function XUIAudioComponent | GetCurrentPosition () end |
function XUIAudioComponent | SetCurrentPosition (position) end |
function XUIAudioComponent | SetAudioTriggerPolicy (p) end |
function XUIAudioComponent | GetAudioTriggerPolicy () end |
function XUIAudioComponent | SetAudioType (p) end |
function XUIAudioComponent | GetAudioType () end |
变量 | |
XUIAudioComponent = {} | |
function XUIAudioComponent Create | ( | ) |
XUIAudioComponent_Create01
function XUIAudioComponent Create | ( | pNode | ) |
function XUIAudioComponent GetAudioPath | ( | ) |
XUIAudioComponent_GetAudioPath00
function XUIAudioComponent GetAudioTriggerPolicy | ( | ) |
XUIAudioComponent_GetAudioTriggerPolicy00
function XUIAudioComponent GetAudioType | ( | ) |
XUIAudioComponent_GetAudioType00
function XUIAudioComponent GetCurrentPosition | ( | ) |
获取音频当前播放进度
function XUIAudioComponent GetDuration | ( | ) |
获取音频总时长
function XUIAudioComponent GetVolume | ( | ) |
XUIAudioComponent_GetVolume00
function XUIAudioComponent IsAudioPlaying | ( | ) |
音频是否正在播放
function XUIAudioComponent IsLoop | ( | ) |
XUIAudioComponent_IsLoop00
function XUIAudioComponent PauseAudio | ( | ) |
暂停背景音频
function XUIAudioComponent PlayAudio | ( | ) |
播放音频
function XUIAudioComponent ResumeAudio | ( | ) |
恢复音频播放
function XUIAudioComponent SetAudioPath | ( | path | ) |
XUIAudioComponent_SetAudioPath00
path | string |
function XUIAudioComponent SetAudioTriggerPolicy | ( | p | ) |
XUIAudioComponent_SetAudioTriggerPolicy00
p | number |
function XUIAudioComponent SetAudioType | ( | p | ) |
XUIAudioComponent_SetAudioType00
p | number |
function XUIAudioComponent SetCurrentPosition | ( | position | ) |
设置音频当前播放进度
position | number 毫秒 |
function XUIAudioComponent SetLoop | ( | bLoop | ) |
设置/获取音频是否循环播放
bLoop | boolean 是否循环 |
function XUIAudioComponent SetVolume | ( | fVolume | ) |
设置/获取音频播放音量
fVolume | number |
function XUIAudioComponent StopAudio | ( | release | ) |
停止播放音频
release | boolean 是否释放资源 |
XUIAudioComponent = {} |