Fade the volume sound.
The current instance for chaining.
Get if the sound is looping.
Get if the sound is muted.
Get the sound playback rate. This 1 for the default speed. This value is not clamped (any value greater than 0 is valid), but the underlying audio system might not play the sound at the required rate if it's very low or very high.
Get the sound seek.
Get the sound spatial position.
Get the sound volume.
A float from 0 to 1.
Returns true if the associated howl is fully loaded.
Removes an event listener to the howl.
Adds an event listener to the howl.
Adds an event listener to the howl that removes itself after being called.
If the event is play
and the sound is being played, the handler is
called synchronously.
Pauses playback of the sound, saving the seek of playback.
The current instance for chaining.
Check if the sound is currently paused.
Begins playback of the sound, or if the Howl is still loading, schedule playing for once it loads.
The current instance for chaining.
Check if the sound is currently playing. Note that a loading sound is considered as playing (as it will be played as soon as it's loaded). To avoid loading at runtime, prefer to preload the sounds.
Set if the sound is looping.
The current instance for chaining.
Set if the sound is muted.
The current instance for chaining.
Set the playback rate. This value is not clamped (any value greater than 0 is valid), but the underlying audio system might not play the sound at the required rate if it's very low or very high.
The current instance for chaining.
Set the sound seek.
The current instance for chaining.
Set the sound spatial position.
The current instance for chaining.
Set the sound volume.
A float from 0 to 1. The value is clamped if too high or too low.
The current instance for chaining.
Stops playback of the sound, resetting seek to 0.
The current instance for chaining.
Check if the sound is currently stopped.
Generated using TypeDoc
A thin wrapper around a Howl object with:
setRate
to ensure a valid value is passed to Howler.js.setVolume
so that the volume is always between 0 and 1.gdjs