跳到主要内容
版本:v10.0

M3D / M3D / Animation / AnimationSound

Class: AnimationSound

M3D.Animation.AnimationSound

Memberof

M3D.Animation

Description

动画声音相关类

Author

YF

Export

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AnimationSound(plcPath, cSoundFilePath): AnimationSound

Parameters

NameType
plcPathstring
cSoundFilePathstring

Returns

AnimationSound

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

NameTypeDescription
cSoundFilePathstring声音文件路径
plcIdPathstring
bPlayFlgboolean是否播放
fTimenumber播放的时间

Returns

boolean

Description

播放动画

Memberof

AnimationSound


Instance

Instance(plcPath, cSoundFilePath): AnimationSound

Parameters

NameTypeDescription
plcPathstringPLC路径
cSoundFilePathstring音频路径

Returns

AnimationSound

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

NameType
speedany

Returns

void

Description

设置播放速度

Static

Memberof

AnimationSound