AutoMovie API
    Preparing search index...

    Function planAutoMovieAudioPlayback

    • Which cues sound when playback starts at a film instant and runs at a transport rate, and how each is started: a cue already sounding starts at once part-way into its excerpt, a later cue after its film delay divided by the transport rate, and an ended cue not at all. Source offsets advance by the cue's own rate times the elapsed film seconds, and the playback rate multiplies the cue rate by the transport rate. Pure, so a seek and a resume plan the same playback from the same instant.

      Parameters

      • cues: readonly IAutoMovieAudioCue[]

        The cue list.

      • seconds: number

        The film instant playback starts from.

      • rate: number

        Film seconds per wall second; positive.

      • lengths: Readonly<Record<string, number>>

        Source length in seconds by asset, for cues without a duration.

      Returns IStart[]

      One start per sounding cue, in cue order.