Class AudioVolumeNotificationData
- Namespace
- AudioDeviceLib.CoreAudioApi
- Assembly
- AudioDeviceLib.dll
Immutable snapshot of an endpoint's volume state delivered with a volume-change notification.
public sealed record AudioVolumeNotificationData : IEquatable<AudioVolumeNotificationData>
- Inheritance
-
AudioVolumeNotificationData
- Implements
- Inherited Members
Constructors
AudioVolumeNotificationData(Guid, bool, float, float[])
Creates a new volume notification data snapshot.
public AudioVolumeNotificationData(Guid eventContext, bool muted, float masterVolume, float[] channelVolume)
Parameters
eventContextGuidThe context GUID of the caller that triggered the change.
mutedboolWhether the endpoint is muted.
masterVolumefloatThe master volume scalar in the range 0.0 to 1.0.
channelVolumefloat[]The per-channel volume scalars; its length determines Channels.
Properties
ChannelVolume
Gets the per-channel volume scalars, each in the range 0.0 to 1.0.
public IReadOnlyList<float> ChannelVolume { get; }
Property Value
Channels
Gets the number of channels reported in ChannelVolume.
public int Channels { get; }
Property Value
EventContext
Gets the context GUID identifying the caller that triggered the change, if any.
public Guid EventContext { get; }
Property Value
MasterVolume
Gets the master volume as a normalized scalar in the range 0.0 to 1.0.
public float MasterVolume { get; }
Property Value
Muted
Gets a value indicating whether the endpoint is muted.
public bool Muted { get; }