Skip to content

createAudioSourceFromBuffer

function createAudioSourceFromBuffer(
buffer: ArrayBuffer | Uint8Array<ArrayBufferLike>,
options?: AudioSourceOptions,
id?: string): Promise<AudioSource>;

Creates an AudioSource from an ArrayBuffer or Uint8Array.

Defaults to streaming sources for instant first-tile rendering. Falls back to DecodedAudioSource if streaming is unavailable.

ParameterType
bufferArrayBuffer | Uint8Array<ArrayBufferLike>
options?AudioSourceOptions
id?string

Promise<AudioSource>