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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
buffer | ArrayBuffer | Uint8Array<ArrayBufferLike> |
options? | AudioSourceOptions |
id? | string |
Returns
Section titled “Returns”Promise<AudioSource>