AudioCrossfadeOptions
Defined in: audio/src/types.ts:52
Extends
Section titled “Extends”Properties
Section titled “Properties”channel?
Section titled “channel?”
optionalchannel?:string
Defined in: audio/src/types.ts:30
Inherited from
Section titled “Inherited from”duration
Section titled “duration”duration:
number
Defined in: audio/src/types.ts:54
Crossfade duration in seconds. Must be finite and greater than zero.
easing?
Section titled “easing?”
optionaleasing?:EasingFunction
Defined in: audio/src/types.ts:56
Volume interpolation for both sounds. Default: easeLinear.
optionalloop?:boolean
Defined in: audio/src/types.ts:32
Inherited from
Section titled “Inherited from”onEnd?
Section titled “onEnd?”
optionalonEnd?: () =>void
Defined in: audio/src/types.ts:40
Called once when the sound finishes on its own (its end event). NOT
called when you stop() it, and never for a looping sound (it has no end).
The “tell me when this clip is done” seam — e.g. gating dialogue auto-advance
on a voice clip.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”speed?
Section titled “speed?”
optionalspeed?:number
Defined in: audio/src/types.ts:33
Inherited from
Section titled “Inherited from”volume?
Section titled “volume?”
optionalvolume?:number
Defined in: audio/src/types.ts:31
Inherited from
Section titled “Inherited from”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.