Table of Contents

Struct ObsChannelLevel

Namespace
OBSStudioClient.Model
Assembly
OBSClient.dll

The level of the audio of one channel of an input, as OBS Studio measured it a moment ago (see ObsAudioLevels).

public readonly struct ObsChannelLevel : IEquatable<ObsChannelLevel>
Implements
Inherited Members

Remarks

The numbers are multipliers of the full scale: 1 is as loud as digital audio can be (0 dB), 0.5 is 6 dB lower, and the number goes above 1 when the volume of the input is turned up. A level that is shown as a bar is usually PeakDb or MagnitudeDb, between -100 (silence) and 0.

OBS Studio measures the last chunk of audio that the input delivered (some tens of milliseconds) and says the result every 50 milliseconds, so the numbers jump from one message to the next: a meter that wants to look smooth keeps the highest peak and lets it fall.

Properties

InputPeak

Gets the peak of the audio as the input made it: before the volume of the input and its mute are applied. It is what a meter that has to show whether the source is too loud looks at, whatever the volume is.

InputPeakDb

Gets InputPeak in decibels: 0 is full scale, and silence is -100.

Magnitude

Gets the magnitude: the root mean square of the samples of the last chunk of audio, with the volume of the input applied. It is 0 while the input is muted. It is the number that tells how loud the audio sounds.

MagnitudeDb

Gets Magnitude in decibels: 0 is full scale, and silence is -100.

Peak

Gets the peak: the highest sample of the last chunk of audio, with the volume of the input applied. It is 0 while the input is muted.

PeakDb

Gets Peak in decibels: 0 is full scale, and silence is -100.

Methods

Equals(ObsChannelLevel)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

ToString()

Gets the levels as text, in decibels.

Operators

operator ==(ObsChannelLevel, ObsChannelLevel)

Determines whether two levels have the same numbers.

operator !=(ObsChannelLevel, ObsChannelLevel)

Determines whether two levels have different numbers.