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 = 0The user removed the audio endpoint device.
DisconnectReasonExclusiveModeOverride = 5The (shared-mode) audio session was disconnected to make the audio endpoint device available for an exclusive-mode connection.
DisconnectReasonFormatChanged = 2The stream format changed for the device that the audio session is connected to.
DisconnectReasonServerShutdown = 1The Windows audio service has stopped.
DisconnectReasonSessionDisconnected = 4The WTS session that the audio session was running in was disconnected.
DisconnectReasonSessionLogoff = 3The user logged off the WTS session that the audio session was running in.
Remarks
MSDN Reference: Unknown