Constructor
new Sound(src)
Basically a wrapper object for loading and playing sounds.
Parameters:
Name | Type | Description |
---|---|---|
src |
String | The uri for the audiofile to be loaded |
Properties:
Name | Type | Description |
---|---|---|
src |
String | The uri/filepath for the sound |
sound |
Audio |
- Source:
Methods
(static) load()
Loads the sound.
- Source:
(static) play()
Will load and play the sound.
- Source:
Type Definitions
onload
This function is meant to be extended, it is called once the sound loads.
- Source:
onplay
This function is meant to be extended, it is called whenever the sound plays.
- Source: