AutoMovie API
    Preparing search index...

    Function playAutoMovieAudioCues

    • Play a cue list through Web Audio from a film instant at a transport rate, as planAutoMovieAudioPlayback plans it: one buffer source per sounding cue, through a gain and an equal-power stereo panner, started at the context's current time plus its delay. The returned stop releases every started source, so a pause, seek or rate change stops and replans.

      Parameters

      • context: BaseAudioContext

        The audio context.

      • decoded: Readonly<Record<string, AudioBuffer>>

        Decoded buffers by asset.

      • cues: readonly IAutoMovieAudioCue[]

        The cue list.

      • seconds: number

        The film instant to start from.

      • rate: number

        Film seconds per wall second.

      Returns () => void

      A function stopping every started source once.