Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.0
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.1
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
audio
AudioManager
Class AudioManager<AudioType>
Type parameters
AudioType
Hierarchy
AudioManager
AudioManagerDom
AudioManagerWeb
Index
Constructors
constructor
Properties
_playing
Audios
max
Audio
Channel
Methods
add
Playing
discard
One
Playing
IfNeeded
remove
Playing
Constructors
constructor
new
Audio
Manager
(
)
:
AudioManager
Returns
AudioManager
Properties
Protected
_playing
Audios
_playing
Audios
:
Array
<
AudioType
>
Static
Readonly
max
Audio
Channel
max
Audio
Channel
:
number
= 24
Methods
add
Playing
add
Playing
(
audio
:
AudioType
)
:
void
Parameters
audio:
AudioType
Returns
void
Abstract
discard
One
Playing
IfNeeded
discard
One
Playing
IfNeeded
(
)
:
any
Returns
any
remove
Playing
remove
Playing
(
audio
:
AudioType
)
:
void
Parameters
audio:
AudioType
Returns
void
Globals
component/audio
Audio
Clip
Audio
Manager
constructor
_playing
Audios
max
Audio
Channel
add
Playing
discard
One
Playing
IfNeeded
remove
Playing
Audio
Manager
Dom
Audio
Manager
Web
Audio
Player
Audio
PlayerDOM
Audio
Player
Web
Audio
Source
IAudio
Info
Managed
Audio
Managed
Audio
Audio
Type
create
Dom
Audio
Playing
State
Generated using
TypeDoc