Property Levels
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
Levels
Gets the levels of the audio of the input, as OBS Studio measured them in its last message: how loud each channel is. It is null unless the model was asked to follow the levels (HighVolume with AudioLevels), and while OBS Studio does not list the input: it lists the inputs that are on the air (IsActive) and have audio (HasAudio), and says nothing of the others.
public ObsAudioLevels? Levels { get; }
Property Value
Remarks
OBS Studio sends the levels twenty times a second, and the model shows the last message, whatever the handlers of the application do: a handler that is slower than OBS Studio gets the newest levels and not all of them (see AudioLevels). An input that is muted is listed, with the levels that the volume and the mute give (see ObsChannelLevel), and so is an input that plays nothing: it has levels of 0 (PeakDb is -100). The value is a snapshot: it does not change while you hold it.
PropertyChanged is raised when the levels of the input change from one message to the next (a silence that stays silent is not announced again), and when OBS Studio stops listing the input, and also when the connection ends: the levels are null then.