ERole Enumeration

The ERole enumeration defines constants that indicate the role that the system has assigned to an audio endpoint device.

Syntax

typedef enum __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0002
{
    eConsole = 0,
    eMultimedia = (eConsole+1),
    eCommunications = (eMultimedia+1),
    ERole_enum_count = (eCommunications+1)
} ERole;  

Remarks

The IMMDeviceEnumerator::GetDefaultAudioEndpoint and IMMNotificationClient::OnDefaultDeviceChanged methods use the constants defined in the ERole enumeration.

For more information, see Device Roles.

Constants

Constant Description
eConsole Games, system notification sounds, and voice commands.
eMultimedia Music, movies, narration, and live music recording.
eCommunications Voice communications (talking to another person).
ERole_enum_count The number of members in the ERole enumeration (not counting the ERole_enum_count member).

Requirements

Header: Declared in mmdeviceapi.h.

Library: Use MMDevApi.lib.