Skip to content

@modoki/engine / index / getAudioLoadType

Function: getAudioLoadType()

getAudioLoadType(ref): "buffer" | "stream"

Buffer-vs-stream decision for an audio clip. Reads the baked .meta.jsonaudio.loadType; defaults to 'buffer' for unconverted clips (short SFX are the common case). Accepts guid or path.

Parameters

ref

string

Returns

"buffer" | "stream"

Built with Modoki.