Table of Contents

Class AudioSessionInfo

Namespace
AudioDeviceLib.CoreAudioApi
Assembly
AudioDeviceLib.dll

An immutable, point-in-time snapshot of the information about an AudioSessionControl. It is handed to every IAudioSessionEvents callback so a consumer can identify and inspect the source session without touching the live COM object from a notification thread.

[PublicAPI]
public sealed record AudioSessionInfo : AudioSessionBaseInfo, IEquatable<AudioSessionBaseInfo>, IEquatable<AudioSessionInfo>
Inheritance
AudioSessionInfo
Implements
Inherited Members

Remarks

The values are captured when the snapshot is created (once per callback) and never change afterward, so an instance is safe to read from any thread, keep, or store. Volatile values such as DisplayName, IconPath and State reflect the moment the snapshot was taken. Any value that could not be read is left at its default (an empty string, 0 or false).

Properties

DisplayName

Gets the display name reported by the session at snapshot time, or an empty string if unavailable.

public string DisplayName { get; }

Property Value

string

IconPath

Gets the icon path reported by the session at snapshot time, or an empty string if unavailable.

public string IconPath { get; }

Property Value

string

State

Gets the activity state of the session at snapshot time.

public AudioSessionState State { get; }

Property Value

AudioSessionState