Defines the track position of this Sound
.
Returns duration of this Sound
in seconds.
Defines the normalized volume
of this Sound
. Volume value is clamped to range [0,1]
Disposes this object, effectively turning this into an unmanaged resource.
Returns true
if the sound is currently playing
Pauses playback of this Sound
.
The sound resumes at the same track position with next play
call.
Plays this Sound
.
If the sound is not fully loaded, the playback will delay until loading is complete.
Plays this Sound
.
If the sound is not fully loaded, the playback will delay until loading is complete.
callback function when the Sound
finishes.
Plays this Sound
.
If the sound is not fully loaded, the playback will delay until loading is complete.
if true
, this Sound
loops indefinitely.
Stops playback of this Sound
.
The sound starts from the beginning with next play
call.
Loads a sound via the provided sound id
.
sound asset id.
loaded Sound
.
Loads a sound via the provided sound id
.
sound asset id.
triggers once the Sound
is fully loaded.
loaded Sound
.
Plays a oneshot sound based on the provided, loaded Sound
.
Oneshot sounds can be played multiple times from the same Sound
source and are useful for
repeating sound effects like rain and foot steps.
sound to play once.
normalized volume at which to play the sound.
Stops all sounds that are currently playing.
Stops all sounds by their sound asset id
.
array of sound asset ids.
Stops a sound by its sound asset id
.
array of sound asset ids.
Sound
that is played in DX Engine.All sounds require a sound asset
id
and need to be fully loaded before they can be played.