Extends
- PIXI.EventEmitter
Implements
Members
filters filters.Filter[]
The collection of filters.
The current unique ID for this instance.
If the sound instance should loop playback
true
if the sound is muted
paused boolean overrides
Pauses the sound.
progress number overrides
The current playback progress from 0 to 1.
Set the instance speed from 0 to 1
Get the set the volume for this instance from 0 to 1
Methods
Don't use after this.
Initializes the instance.
Name | Type | Description |
---|---|---|
media |
webaudio.WebAudioMedia |
Plays the sound.
Name | Type | Description |
---|---|---|
options |
PlayOptions |
Play options. |
Refresh loop, volume and speed based on changes to parent
Handle changes in paused state, either globally or sound or instance
Set a property by name, this makes it easy to chain values
Name | Type | Description |
---|---|---|
name |
"speed" | "volume" | "muted" | "loop" | "paused" |
Name of the property to set. |
value |
number | boolean |
Value to set property to. |
Returns:
Type | Description |
---|---|
this |
stop () void overrides
Stops the instance, don't use after this.
To string method for instance.
Returns:
Type | Description |
---|---|
string | The string representation of instance. |