|
AR_Engine_SDK
|
Variables | |
| INITIAL = 0 | |
| PLAYING = 0 | |
| PAUSED = 0 | |
| STOPPED = 0 | |
| IXAudioSource = {} | |
| function IXAudioSource GetAudioCurrentTime | ( | ) |
获取音频当前播放时间,即tell
| function IXAudioSource GetAudioDuration | ( | ) |
IXAudioSource_GetAudioDuration00
| function IXAudioSource GetAudioFileName | ( | ) |
获取音频资源文件名称
| function IXAudioSource GetGain | ( | ) |
获取音频增益,注意音频增益与音量不同
| function IXAudioSource GetLocation | ( | ) |
获取音频位置
| function IXAudioSource GetPitch | ( | ) |
获取音高
| function IXAudioSource GetSourceId | ( | ) |
获取音频Id
| function IXAudioSource GetState | ( | ) |
获取音频状态,包括初始化,播放,暂停,停止
| function IXAudioSource GetVelocity | ( | ) |
获取音频速度
| function IXAudioSource IsLooped | ( | ) |
获取音频是否循环播放
| function IXAudioSource IsSourceFinished | ( | ) |
是否音频已播放完成
| function IXAudioSource IsStoped | ( | ) |
是否已停止播放音频
| function IXAudioSource Pause | ( | ) |
暂停音频
| function IXAudioSource Play | ( | ) |
播放音频
| function IXAudioSource Resume | ( | ) |
恢复音频
| function IXAudioSource Rewind | ( | ) |
回放音频
| function IXAudioSource Seek | ( | time | ) |
设置音频播放的时间,即播放偏移
| time | number 定位播放时间,即播放偏移 |
| function IXAudioSource SetAttenuation | ( | attenuation | ) |
设置音频衰减系数
| attenuation | number 衰减系数 |
| function IXAudioSource SetGain | ( | gain | ) |
设置音频增益,注意音频增益与音量不同
| gain | number 增益值Range:[0.0-] |
| function IXAudioSource SetLocation | ( | velocity | ) |
设置音频位置
| velocity | XVECTOR3 位置值(x,y,z) |
| function IXAudioSource SetLocation | ( | x | , |
| y | , | ||
| z | |||
| ) |
设置音频位置
| x | number 在X方向上的位置值 |
| y | number 在Y方向上的位置值 |
| z | number 在Z方向上的位置值 |
| function IXAudioSource SetLoop | ( | looped | ) |
设置音频是否循环播放
| looped | boolean 是否循环播放 |
| function IXAudioSource SetMinDistance | ( | distance | ) |
设置音频距离
| distance | number 音频相对距离 |
| function IXAudioSource SetPitch | ( | pitch | ) |
设置音高
| pitch | number |
| function IXAudioSource SetTransform | ( | transform | ) |
设置音频位置
| transform | XMATRIX4 矩阵,包含位置偏移 |
| function IXAudioSource SetVelocity | ( | location | ) |
设置音频速度
| location | XVECTOR3 |
| function IXAudioSource SetVelocity | ( | x | , |
| y | , | ||
| z | |||
| ) |
设置音频速度
| x | number 在X方向上的速度值 |
| y | number 在Y方向上的速度值 |
| z | number 在Z方向上的速度值 |
| function IXAudioSource Stop | ( | ) |
停止播放音频
| INITIAL = 0 |
| IXAudioSource = {} |
| PAUSED = 0 |
| PLAYING = 0 |
| STOPPED = 0 |
1.8.15