Table of Contents
API reference

Method SetDucking

Namespace
DisCatSharp.Voice.Entities
Assembly
DisCatSharp.Voice.dll

SetDucking(bool, float)

Sets ducking state explicitly. Prefer pausing music entirely for overlays when possible (lowest latency).

public void SetDucking(bool enabled, float duckedGain = 0.2)

Parameters

enabled bool

true to duck music to duckedGain; false to restore full volume.

duckedGain float

The gain multiplier while ducked. Clamped to [0, 1].