Table of Contents

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

input InputRef

The input to set the volume of, by name or by UUID.

inputVolumeMul float?

Volume setting in mul. Restrictions: >= 0, <= 20. If omitted: inputVolumeDb should be specified.

inputVolumeDb float?

Volume setting in dB. Restrictions: >= -100, <= 26. If omitted: inputVolumeMul should be specified.

cancellationToken CancellationToken

A 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.

Returns

Task