AudioBufferSourceNode

external class AudioBufferSourceNode(context: BaseAudioContext, options: AudioBufferSourceOptions = definedExternally) : AudioScheduledSourceNode(source)

An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.

MDN Reference

Constructors

Link copied to clipboard
constructor(context: BaseAudioContext, options: AudioBufferSourceOptions = definedExternally)

Properties

Functions

Link copied to clipboard
fun connect(destinationParam: AudioParam, output: Int = definedExternally)

fun connect(destinationNode: AudioNode, output: Int = definedExternally, input: Int = definedExternally): AudioNode
Link copied to clipboard
fun disconnect(output: Int)
fun disconnect(destinationNode: AudioNode)
fun disconnect(destinationParam: AudioParam)
fun disconnect(destinationNode: AudioNode, output: Int)
fun disconnect(destinationParam: AudioParam, output: Int)
fun disconnect(destinationNode: AudioNode, output: Int, input: Int)
Link copied to clipboard
Link copied to clipboard
fun start(when: Double = definedExternally, offset: Double = definedExternally, duration: Double = definedExternally)
fun start(when: Double = definedExternally)
Link copied to clipboard
fun stop(when: Double = definedExternally)