JS API Reference DataBuffer class

DataBuffer class

Helper class for retrieved binary data from a RNBO Patcher using BaseDevice.releaseDataBuffer().

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the RNBODataBuffer class.

Signature

export declare class RNBODataBuffer 

Properties

buffer

read-only

Type: ArrayBuffer

The raw binary data of the DataBuffer

Methods

getAsAudioBuffer

Retrieve the data interpreted as a WebAudio AudioBuffer.

Parameters

ParameterTypeDescription
contextAudioContextThe AudioContext to use for creating a new AudioBuffer

Returns:

AudioBuffer