Skip to content

MixerBus beta ​

Interface of @v12-engine/client

ts
export interface MixerBus

What code reaches of a bus (AppMixer.bus): its volume as the player sets it, and its Web Audio node to play into

Members ​

id ​

ts
readonly id: Bus;

The bus's id, the name the mixer and the settings know it by

level ​

ts
level(): number;

The volume the player has set for the bus, 0..1

node ​

ts
readonly node: GainNode;

The bus's Web Audio gain node, for sounds played into the bus

setLevel ​

ts
setLevel(level: number): void;

Sets the player's volume for the bus, 0..1