MediaDevice.GetDefaultAudioRenderId(AudioDeviceRole) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the identifier string of the default device for rendering audio in the specified role.
public:
static Platform::String ^ GetDefaultAudioRenderId(AudioDeviceRole role);
static winrt::hstring GetDefaultAudioRenderId(AudioDeviceRole const& role);
public static string GetDefaultAudioRenderId(AudioDeviceRole role);
function getDefaultAudioRenderId(role)
Public Shared Function GetDefaultAudioRenderId (role As AudioDeviceRole) As String
Parameters
- role
- AudioDeviceRole
The specified audio device role (console, media, or communications).
Returns
The identifier string of the default device.