API Documentation

for 0.0.1
Show:

AudioBuffer Class

AudioBuffer Class. Encapsulates the concept of buffer of Audio data. You can load, depending on the platform, various audio file formats, like WAV, MP3 or OGG. See the Web Audio API documentation. requires the Web Audio API.

Constructor

AudioBuffer

(
  • params
)

Parameters:

  • params Object

    the parameters object

    • renderer RendererAudio

      The audio renderer

    • arrayBuffer ArrayBuffer

      the raw arraybuffer, already loaded, to give to the audio context

    • decodedCallback Function

      the callback function to call when Audio Context has decoded the sound file's raw arrayBuffer

Example:

Item Index

Methods

getInternalAudioBuffer

() Buffer

Return the underlying WebAudio audio buffer

Returns:

Buffer:

webAudio buffer