Table of Contents

Enum AudioSessionDisconnectReason

Namespace
NAudio.CoreAudioApi.Interfaces
Assembly
NAudio.Wasapi.dll

Defines constants that indicate a reason for an audio session being disconnected.

public enum AudioSessionDisconnectReason

Fields

DisconnectReasonDeviceRemoval = 0

The user removed the audio endpoint device.

DisconnectReasonExclusiveModeOverride = 5

The (shared-mode) audio session was disconnected to make the audio endpoint device available for an exclusive-mode connection.

DisconnectReasonFormatChanged = 2

The stream format changed for the device that the audio session is connected to.

DisconnectReasonServerShutdown = 1

The Windows audio service has stopped.

DisconnectReasonSessionDisconnected = 4

The WTS session that the audio session was running in was disconnected.

DisconnectReasonSessionLogoff = 3

The user logged off the WTS session that the audio session was running in.

Remarks

MSDN Reference: Unknown