Table of Contents

Class DefaultDeviceChangedEventArgs

Namespace
NAudio.CoreAudioApi
Assembly
NAudio.Wasapi.dll

Event data for DefaultDeviceChanged.

public sealed class DefaultDeviceChangedEventArgs : DeviceNotificationEventArgs
Inheritance
DefaultDeviceChangedEventArgs
Inherited Members

Constructors

DefaultDeviceChangedEventArgs(DataFlow, Role, string)

Initializes a new instance of the DefaultDeviceChangedEventArgs class.

public DefaultDeviceChangedEventArgs(DataFlow flow, Role role, string deviceId)

Parameters

flow DataFlow

The data-flow direction that changed.

role Role

The device role that changed.

deviceId string

The new default endpoint ID, or null if there is no longer a default.

Properties

Flow

The data-flow direction (render or capture) whose default device changed.

public DataFlow Flow { get; }

Property Value

DataFlow

Role

The device role whose default assignment changed.

public Role Role { get; }

Property Value

Role