AudioStation
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
optionalaudioContextOption: AudioContextOptions
Returns AudioStation
Properties
audioContext
clips
readonlyeventTarget
mixers
Accessors
activated
Is the AudioContext used in the AudioStation running
Returns boolean
destroyed
Check if the audio buffer destroyed
Returns boolean
time
Get time from the AudioContext, useful for scheduling
Returns number
Methods
activate
Attempt to resume the AudioContext used in the AudioStation
Returns Promise<void>
deactivate
Attempt to suspend the AudioContext used in the AudioStation
Returns Promise<void>
destroy
Destroy the AudioContext used in the AudioStation
Returns Promise<void>
load
Load audio buffer from a specific url
Parameters
url: string
Returns Promise<AudioClip>
loadFromBuffer
Parameters
arrayBuffer: ArrayBuffer
Returns Promise<AudioClip>
reset
Reset the audio station when its audio context is broken Designed for iOS, but potentially useful on other platforms
Returns void
The audio manager