Skip to content

AudioClip beta ​

Interface of @v12-engine/client

ts
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 ​

ts
bus?: 'music' | 'effects' | 'voice' | 'ambience' | 'interface';

The bus whose volume the clip sets, together with level

crossfade ​

ts
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 ​

ts
level?: number;

How loud the bus is, as a fraction of the player's volume for it (1); required with bus

music ​

ts
music?: string | string[] | null;

The track or tracks to set as the music; null for none

on ​

ts
on?: string | Vec2;

Where the sound is heard from: a unit by its name, or a spot in cells

out ​

ts
out?: number;

Seconds it fades out over before its end (a sound's; a music's at a for's end)

sound ​

ts
sound?: string;

The name of a sound to play

stinger ​

ts
stinger?: string;

The name of a short piece of music to play

to ​

ts
to?: AudioTo;

What it eases to over the clip, along its ease

voice ​

ts
voice?: string;

The name of a voice line to play

volume ​

ts
volume?: number;

The music's volume, 0..1