IDefaultAudioDeviceChangedEventArgs IDefaultAudioDeviceChangedEventArgs IDefaultAudioDeviceChangedEventArgs IDefaultAudioDeviceChangedEventArgs Interface

Called when the default audio device is changed for either audio render or capture.

Syntax

Declaration

public interface IDefaultAudioDeviceChangedEventArgspublic interface IDefaultAudioDeviceChangedEventArgsPublic Interface IDefaultAudioDeviceChangedEventArgs

Properties summary

Gets the ID of the newly selected audio device that raised the device change event.

Gets the role of the newly selected audio device that raised the device change event.

Properties

  • Id
    Id
    Id
    Id

    Gets the ID of the newly selected audio device that raised the device change event.

    public string Id { get; }public string Id { get; }Public ReadOnly Property Id As string

    Property Value

    • string
      string
      string
      string

      ID of the newly selected audio device that raised the device change event.

  • Role
    Role
    Role
    Role

    Gets the role of the newly selected audio device that raised the device change event.

    public AudioDeviceRole Role { get; }public AudioDeviceRole Role { get; }Public ReadOnly Property Role As AudioDeviceRole

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Media.Devices.dll