MediaDevice.GetDefaultAudioCaptureId Method

Returns the identifier string of the default device for capturing audio in the specified role.

Syntax

public:
static String^ GetDefaultAudioCaptureId(
         AudioDeviceRole role
)  

Parameters

role
Type: AudioDeviceRole 

The specified audio device role (console, media, or communications).

Return value

Type: String 

  The identifier string of the default device.

Requirements

Namespace: Windows.Media.Devices

Metadata: windows.winmd

See also

Reference

MediaDevice Class

MediaDevice Members

Windows.Media.Devices Namespace