Cosmos Journeyer API Documentation - v1.10.1
Preparing search index...
frontend/audio/soundPlayer
ISoundPlayer
Interface ISoundPlayer
interface
ISoundPlayer
{
createInstance
(
soundType
:
SoundType
,
mask
:
number
,
initialTargetVolume
:
number
,
isPonctual
:
boolean
,
)
:
ISoundInstance
;
enqueuePlay
(
soundType
:
SoundType
)
:
void
;
freeInstance
(
instance
:
ISoundInstance
)
:
void
;
playNow
(
soundType
:
SoundType
)
:
void
;
setInstanceMask
(
mask
:
number
)
:
void
;
update
()
:
void
;
}
Implemented by
SoundPlayer
SoundPlayerMock
Index
Methods
create
Instance
enqueue
Play
free
Instance
play
Now
set
Instance
Mask
update
Methods
create
Instance
createInstance
(
soundType
:
SoundType
,
mask
:
number
,
initialTargetVolume
:
number
,
isPonctual
:
boolean
,
)
:
ISoundInstance
Parameters
soundType
:
SoundType
mask
:
number
initialTargetVolume
:
number
isPonctual
:
boolean
Returns
ISoundInstance
enqueue
Play
enqueuePlay
(
soundType
:
SoundType
)
:
void
Parameters
soundType
:
SoundType
Returns
void
free
Instance
freeInstance
(
instance
:
ISoundInstance
)
:
void
Parameters
instance
:
ISoundInstance
Returns
void
play
Now
playNow
(
soundType
:
SoundType
)
:
void
Parameters
soundType
:
SoundType
Returns
void
set
Instance
Mask
setInstanceMask
(
mask
:
number
)
:
void
Parameters
mask
:
number
Returns
void
update
update
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
Instance
enqueue
Play
free
Instance
play
Now
set
Instance
Mask
update
Cosmos Journeyer API Documentation - v1.10.1
Loading...