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 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 stringpublic string Id { get; }

    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 AudioDeviceRolepublic AudioDeviceRole Role { get; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.Media.Devices.dll