Skip to content

hm5-types (source format) / SoundSync

Type Alias: SoundSync ​

ts
type SoundSync = "event" | "stream";

How a sound follows the timeline.

  • "event": starts (from its beginning) only when the playhead ENTERS its start frame, then plays to its end on its own, whatever the timeline does (Flash Event).
  • "stream": tied to the frames it covers — it plays only while the timeline plays inside its span, from the point that matches the frame (a goto into the middle starts mid-sound), and stops when the timeline stops or leaves the span (Flash Stream).

HereSplash — 2D animation for the web