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
flowDataFlowThe data-flow direction that changed.
roleRoleThe device role that changed.
deviceIdstringThe new default endpoint ID, or
nullif 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
Role
The device role whose default assignment changed.
public Role Role { get; }