Skip to main content

Type Alias: SoundProps

SoundProps = SoundPropsBase & object | SoundPropsBase & object

Defined in: attributes/audio/sound.ts:22

Author-facing sound props. Two mutually-exclusive ways to bound the clip:

  • { trimStart?, trimEnd? } — explicit in/out points into the source file.
  • { duration? } — syntax sugar for a clip that runs duration seconds from the start (equivalent to trimStart: 0, trimEnd: duration).

When neither trimEnd nor duration is given, the clip runs to the source's full length (resolved from the asset catalog). trimStart defaults to 0.