AudioBuffer

open external class AudioBuffer(options: AudioBufferOptions)(source)

A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode.

MDN Reference

Constructors

Link copied to clipboard
constructor(options: AudioBufferOptions)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyFromChannel(destination: Float32Array<*>, channelNumber: Int, bufferOffset: Int = definedExternally)
Link copied to clipboard
fun copyToChannel(source: Float32Array<*>, channelNumber: Int, bufferOffset: Int = definedExternally)
Link copied to clipboard