tubao
Preparing search index...
tubao
sound
effect
Class effect
Created by yangsong on 15-1-14. 音效类
Hierarchy (
View Summary
)
BaseSound
effect
Implements
ISoundEffect
Index
Constructors
constructor
Properties
_cache
_loading
Cache
Methods
check
Can
Clear
get
Sound
loaded
Play
play
set
Volume
stop
Constructors
constructor
new
effect
()
:
effect
构造函数
Returns
effect
Properties
_cache
_cache
:
any
_loading
Cache
_loadingCache
:
string
[]
Methods
check
Can
Clear
checkCanClear
(
key
:
string
)
:
boolean
检测一个文件是否要清除,子类重写
Parameters
key
:
string
Returns
boolean
get
Sound
getSound
(
key
:
string
)
:
Sound
获取Sound
Parameters
key
:
string
Returns
Sound
loaded
Play
loadedPlay
(
key
:
string
)
:
void
资源加载完成后处理播放
Parameters
key
:
string
Returns
void
play
play
(
effectName
:
string
,
loops
:
number
)
:
void
播放一个音效
Parameters
effectName
:
string
loops
:
number
Returns
void
set
Volume
setVolume
(
volume
:
number
)
:
void
设置音量
Parameters
volume
:
number
Returns
void
stop
stop
(
effectName
:
string
)
:
void
播放一个音效
Parameters
effectName
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_cache
_loading
Cache
Methods
check
Can
Clear
get
Sound
loaded
Play
play
set
Volume
stop
tubao
Loading...
Created by yangsong on 15-1-14. 音效类