effect-motion
API ReferenceexportNamespacesVideoFunctions

prepareAudio

function prepareAudio<ID, E, R>(

Function: prepareAudio()

function prepareAudio<ID, E, R>(
   track,
   load,
options?): Layer<AudioLoader<ID> | AudioMetadata<ID>, EncodeError | E, ChildProcessSpawner | R>;

Defined in: packages/export/src/Video.ts:79

Prepare one Node audio source before scene execution. Duration is measured by decoding exactly the bytes retained for export to 48 kHz stereo PCM.

Type Parameters

Type Parameter
ID extends string
E
R

Parameters

ParameterType
trackAudioResource<ID>
loadEffect<Uint8Array<ArrayBufferLike>, E, R>
options{ binary?: string; }
options.binary?string

Returns

Layer<AudioLoader<ID> | AudioMetadata<ID>, EncodeError | E, ChildProcessSpawner | R>

On this page