Appearance
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
| Parameter | Type |
|---|---|
sounds | Iterable<{ id: string; name: string; }> |
ref | string |
Returns
string | null