Table of Contents

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

eventContext Guid

The context GUID of the caller that triggered the change.

muted bool

Whether the endpoint is muted.

masterVolume float

The master volume scalar in the range 0.0 to 1.0.

channelVolume float[]

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

IReadOnlyList<float>

Channels

Gets the number of channels reported in ChannelVolume.

public int Channels { get; }

Property Value

int

EventContext

Gets the context GUID identifying the caller that triggered the change, if any.

public Guid EventContext { get; }

Property Value

Guid

MasterVolume

Gets the master volume as a normalized scalar in the range 0.0 to 1.0.

public float MasterVolume { get; }

Property Value

float

Muted

Gets a value indicating whether the endpoint is muted.

public bool Muted { get; }

Property Value

bool