new Sound(audioPath)
Loads an audio file and provides several playback options.
Parameters:
Name | Type | Description |
---|---|---|
audioPath |
String |
- Source:
Methods
init(audioContext)
Loads audio file
Parameters:
Name | Type | Description |
---|---|---|
audioContext |
Ayce.AudioContext |
- Source:
pause()
Pauses audio playback
- Source:
play()
Initializes and plays audio file
- Source:
stop()
Stops audio playback
- Source:
update()
Updates audio file parameters
- Source: