Gets the ID of the newly selected audio capture device that caused the change event.
public:
property String^ Id {
String^ get ();
}
Type: String
ID of the newly selected audio capture device that caused the change event.
The following list gives example Id strings. The first two strings are the mic and speaker from the headset. The third is Kinect and the fourth is the audio output from the HDMI.
AudioDevice: {E9EB78BB-A725-4BB8-A307-58624AF1C637}!xboxcontrollercapture#0#9#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\global, Capture
AudioDevice: {E9EB78BB-A725-4BB8-A307-58624AF1C637}!xboxcontrollerrender#0#9#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\global, Render
AudioDevice: {E9EB78BB-A725-4BB8-A307-58624AF1C637}!postmec#0#0#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\global, Capture
AudioDevice: {E9EB78BB-A725-4BB8-A307-58624AF1C637}!hdmiout#render#0#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\global, Render
The guids are generated by the system for internal use. The first guid is followed by the device descriptor string ( such as xboxcontrollercapture or xboxcontrollerrender depending on whether the data flow is in or out). This is always followed by #0#. If this is followed by another number, this represents the audio format. For example 9 represents 24k 16 bit mono. Note this number is in decimal, not hex. The following table lists the recognised formats.
| Format | Number |
|---|---|
| #define GIP_AUDIO_FORMAT_NONE | 0 |
| #define GIP_AUDIO_FORMAT_8000_1CH_16BIT | 1 |
| #define GIP_AUDIO_FORMAT_8000_2CH_16BIT | 2 |
| #define GIP_AUDIO_FORMAT_12000_1CH_16BIT | 3 |
| #define GIP_AUDIO_FORMAT_12000_2CH_16BIT | 4 |
| #define GIP_AUDIO_FORMAT_16000_1CH_16BIT | 5 |
| #define GIP_AUDIO_FORMAT_16000_2CH_16BIT | 6 |
| #define GIP_AUDIO_FORMAT_20000_1CH_16BIT | 7 |
| #define GIP_AUDIO_FORMAT_20000_2CH_16BIT | 8 |
| #define GIP_AUDIO_FORMAT_24000_1CH_16BIT | 9 |
| #define GIP_AUDIO_FORMAT_24000_2CH_16BIT | 10 |
| #define GIP_AUDIO_FORMAT_32000_1CH_16BIT | 11 |
| #define GIP_AUDIO_FORMAT_32000_2CH_16BIT | 12 |
| #define GIP_AUDIO_FORMAT_40000_1CH_16BIT | 13 |
| #define GIP_AUDIO_FORMAT_40000_2CH_16BIT | 14 |
| #define GIP_AUDIO_FORMAT_48000_1CH_16BIT | 15 |
| #define GIP_AUDIO_FORMAT_48000_2CH_16BIT | 16 |
Some additional information may follow the second guid, such as \global, Capture.
Namespace: Windows.Media.Devices
Metadata: windows.winmd
DefaultAudioCaptureDeviceChangedEventArgs Class