AudioClip beta
Interface of @v12-engine/client
export interface AudioClip extends Clip, Omit<SoundShape, 'volume'>A clip of the audio lane: sets the music, plays a stinger, sound or voice, or sets a bus's volume, for its stretch
Members
bus
bus?: 'music' | 'effects' | 'voice' | 'ambience' | 'interface';The bus whose volume the clip sets, together with level
crossfade
crossfade?: number;Seconds the music takes to come in as the one before goes; also the seconds a bus's volume takes to ease to level
level
level?: number;How loud the bus is, as a fraction of the player's volume for it (1); required with bus
music
music?: string | string[] | null;The track or tracks to set as the music; null for none
on
on?: string | Vec2;Where the sound is heard from: a unit by its name, or a spot in cells
out
out?: number;Seconds it fades out over before its end (a sound's; a music's at a for's end)
sound
sound?: string;The name of a sound to play
stinger
stinger?: string;The name of a short piece of music to play
to
to?: AudioTo;What it eases to over the clip, along its ease
voice
voice?: string;The name of a voice line to play
volume
volume?: number;The music's volume, 0..1