Data associated with a loadable
Should excalibur add a cache busting querystring? By default false. Must be set before loading
Get the duration that this audio should play. If unset the total natural playback duration will be used.
Set the duration that this audio should play. If unset the total natural playback duration will be used.
Note: if you seek to a specific point the duration will start from that point, for example
If you have a 10 second clip, seek to 5 seconds, then set the duration to 2, it will play the clip from 5-7 seconds.
Whether the audio should loop (repeat forever)
Indicates whether the clip should loop when complete
Set the looping flag
Set the playbackRate, default is 1.0 at normal speed. For example 2.0 is double speed, and 0.5 is half speed.
Set the playbackRate, default is 1.0 at normal speed. For example 2.0 is double speed, and 0.5 is half speed.
The volume (between 0 and 1)
The volume (between 0 and 1)
Optional
event: anyGet Id of provided AudioInstance in current trackList
The Sound object allows games built in Excalibur to load audio components, from soundtracks to sound effects. Sound is an Loadable which means it can be passed to a Loader to pre-load before a game or level.