Constructor
new Sound(src)
Construct the sound.
Parameters:
Name | Type | Description |
---|---|---|
src |
string | URL of the file |
- Source:
Members
sound :HTMLAudioElement
The sound element.
Type:
- HTMLAudioElement
- Source:
Methods
(async) play()
Start playing the sound.
- Source:
stop()
Pause the sound.
- Source: