Skip to content

AudioFadeOptions

Defined in: audio/src/types.ts:43

duration: number

Defined in: audio/src/types.ts:45

Fade duration in seconds. Must be finite and greater than zero.


optional easing?: EasingFunction

Defined in: audio/src/types.ts:47

Volume interpolation. Default: easeLinear.


optional stopOnComplete?: boolean

Defined in: audio/src/types.ts:49

Stop playback after fading to zero. Default: false.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/audio.md.