Optionalurls: ToneAudioBuffersUrlMapAn object literal or array of urls to load.
Optionalonload: () => voidThe callback to invoke when the buffers are loaded.
OptionalbaseUrl: stringA prefix url to add before all the urls
Optionaloptions: Partial<ToneAudioBuffersOptions>A path which is prefixed before every url.
Set this debug flag to log all events that happen in this class.
ReadonlynameThe name of the class
StaticversionThe version number semver
Indicates if the instance was disposed. 'Disposing' an instance means that all of the Web Audio nodes that were created for the instance are disconnected and freed for garbage collection.
If the buffers are loaded or not
Add a buffer by name and url to the Buffers
A unique name to give the buffer
Either the url of the buffer, or a buffer which will be added with the given name.
The callback to invoke when the url is loaded.
Invoked if the buffer can't be loaded
disconnect and dispose.
Get a buffer by name. If an array was loaded, then use the array index.
The key or index of the buffer.
True if the buffers object has a buffer by that name.
The key or index of the buffer.
StaticgetReturns all of the default options belonging to the class.
A data structure for holding multiple buffers in a Map-like data structure.
Example
Example