AudioClipOptions: {
    duration: number;
    easeIn?: number;
    easeOut?: number;
    loop?: boolean;
    speed?: number;
    start?: number;
    volume?: number;
}

Options for an audio clip in the timeline builder

Type declaration

  • duration: number

    Duration of the clip in seconds (required for audio since we can't infer it)

  • OptionaleaseIn?: number

    Ease-in duration in seconds (default: 0)

  • OptionaleaseOut?: number

    Ease-out duration in seconds (default: 0)

  • Optionalloop?: boolean

    Whether the audio should loop within the clip (default: false)

  • Optionalspeed?: number

    Playback speed multiplier (default: 1)

  • Optionalstart?: number

    Start time of the clip in seconds. If omitted, placed after the previous clip on this track.

  • Optionalvolume?: number

    Volume multiplier for this clip (default: 1)