Appearance
anim-format (runtime format) / AnimSoundClip
Interface: AnimSoundClip
A sound on a symbol's timeline (from the editor's sound layers).
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
effect? | SoundEffect | default "none" | SoundOptions.effect |
fade? | number | fade length (s) of the fade effects; default 1 | SoundOptions.fade |
frame | number | start frame, global within the symbol (0-based) | - |
frames | number | frames it covers on the timeline (stream sounds stop after them) | - |
group? | SoundGroup | absent = "effects"; "music" follows the music rules (one at a time) | - |
layer? | string | the editor layer it came from (informative) | - |
loops? | number | plays this many times; 0 = forever; default 1 | SoundOptions.loops |
sound | string | key into AnimFile.sounds | - |
sync? | "event" | "stream" | "event" (default): starts when the playhead enters frame, then plays on its own; "stream": plays only while the timeline plays inside its frames, from the matching point | - |
trimEnd? | number | seconds into the audio where it ends; default its end | SoundOptions.trimEnd |
trimStart? | number | seconds cut off the head of the audio; default 0 | SoundOptions.trimStart |
volume? | number | 0..1, default 1 | SoundOptions.volume |