Method SetInputVolume
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
SetInputVolume(InputRef, float?, float?, CancellationToken)
Sets the volume setting of an input.
public Task SetInputVolume(InputRef input, float? inputVolumeMul = null, float? inputVolumeDb = null, CancellationToken cancellationToken = default)
Parameters
inputInputRefThe input to set the volume of, by name or by UUID.
inputVolumeMulfloat?Volume setting in mul. Restrictions: >= 0, <= 20. If omitted:
inputVolumeDbshould be specified.inputVolumeDbfloat?Volume setting in dB. Restrictions: >= -100, <= 26. If omitted:
inputVolumeMulshould be specified.cancellationTokenCancellationTokenA token that ends the wait for the response, which makes the method throw an OperationCanceledException. A request that was already sent is not undone: OBS Studio may still carry it out.