SoundbankManager

The SoundbankManager component is responsible for loading and retrieving AudioBuffers from the projects audio files.

Methods

(async) getBuffer(filename) → {AudioBuffer}

Description:
  • Get an AudioBuffer from its filename

Source:
Parameters:
Name Type Description
filename String

Filename of the related audio buffer

Returns:
Type
AudioBuffer

(async) getBuffers(fileList) → {Object.<String, AudioBuffer>}

Description:
  • Get a set of AudioBuffers from their filenames

Source:
Parameters:
Name Type Description
fileList Array.<String>

List of filenames to retrieve

Returns:
Type
Object.<String, AudioBuffer>

getTreeAsUrlMap() → {Object.<String, String>}

Description:
  • Get the list of audio files (mp3 or wav) as filename / url object

Source:
See:
Returns:
Type
Object.<String, String>

onUpdate(callback, executeListener)

Description:
  • Register a callback to be triggered when the underlying filesystem changes

Source:
See:
Parameters:
Name Type Description
callback function

Callback function to execute

executeListener Boolean

If true, execute the given callback immediately. (optional, default false)