Skip to content

anim-format (runtime format) / findSoundByName

Function: findSoundByName() ​

ts
function findSoundByName(sounds, ref): string | null;

THE rule for finding a sound by the name a script / Playback action gives (editor, player and video export all call it): the Library name exactly ("tone.wav"), else the name without its extension ("tone"). Returns the id of the first match, or null.

Parameters ​

ParameterType
soundsIterable<{ id: string; name: string; }>
refstring

Returns ​

string | null

HereSplash — 2D animation for the web