effect-motion
API Referenceeffect-motionNamespacesAudioInterfaces

PlayOptions

readonly optional duration?: Input;

Interface: PlayOptions

Defined in: packages/motion/src/Audio.ts:253

Options for play.

Properties

duration?

readonly optional duration?: Input;

Defined in: packages/motion/src/Audio.ts:265

Play a clip this long (scene time): the track pauses on the frame the clip ends, wherever the play ran. Omitted: the play runs until paused, stopped, or the scene ends.


from?

readonly optional from?: number;

Defined in: packages/motion/src/Audio.ts:255

source position to start at, in seconds (default 0)


gain?

readonly optional gain?: number;

Defined in: packages/motion/src/Audio.ts:257

linear gain (default 1)


loop?

readonly optional loop?: boolean;

Defined in: packages/motion/src/Audio.ts:259

wrap at the source end instead of falling silent (default false)

On this page