M3D / M3D / Animation / AnimationSound
Class: AnimationSound
Memberof
M3D.Animation
Description
动画声音相关类
Author
YF
Export
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AnimationSound(plcPath
, cSoundFilePath
): AnimationSound
Parameters
Name | Type |
---|---|
plcPath | string |
cSoundFilePath | string |
Returns
Memberof
AnimationSound
Properties
cdfrom
• cdfrom: any
Deprecated
Description
歌曲的起点
Memberof
AnimationSound
cdlen
• cdlen: any
Deprecated
Description
某个音频文件的总时间长度
Memberof
AnimationSound
cdto
• cdto: any
Deprecated
Description
歌曲的终点
Memberof
AnimationSound
count
• count: any
Deprecated
Description
设备型号
Memberof
AnimationSound
stop
• stop: boolean
= false
Deprecated
Description
停止标记
Memberof
AnimationSound
Methods
transferSound
▸ transferSound(cSoundFilePath
, plcIdPath
, bPlayFlg
, fTime
): boolean
Parameters
Name | Type | Description |
---|---|---|
cSoundFilePath | string | 声音文件路径 |
plcIdPath | string | |
bPlayFlg | boolean | 是否播放 |
fTime | number | 播放的时间 |
Returns
boolean
Description
播放动画
Memberof
AnimationSound
Instance
▸ Instance(plcPath
, cSoundFilePath
): AnimationSound
Parameters
Name | Type | Description |
---|---|---|
plcPath | string | PLC路径 |
cSoundFilePath | string | 音频路径 |
Returns
Description
获取单例对象接口
Static
Memberof
AnimationSound
clear
▸ clear(): void
Returns
void
Description
清空音频播放器
Static
Memberof
AnimationSound
pause
▸ pause(): void
Returns
void
Description
暂停音频播放
Static
Memberof
AnimationSound
setPlaySpeed
▸ setPlaySpeed(speed
): void
Parameters
Name | Type |
---|---|
speed | any |
Returns
void
Description
设置播放速度
Static
Memberof
AnimationSound