Skip to content

IAudioPlayer.SetBusVolume(string, float) Method

Definition

Namespace: Brine2D.Audio

Sets the volume multiplier for all tracks tagged with bus. This is an additional multiplier on top of per-track gain and SoundVolume/MusicVolume.

void SetBusVolume(string bus, float volume);

Parameters

bus System.String

Bus name to adjust.

volume System.Single

Volume multiplier (0.0 to 1.0). Values are clamped.