Compartilhar via


ERole Enumeration

Previous Next

ERole Enumeration

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

typedef enum {
  eConsole,
  eMultimedia,
  eCommunications,
  ERole_enum_count
} ERole;

Members

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).

Remarks

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

For more information, see Device Roles.

Requirements

Client: Windows Vista

Header: Include Mmdeviceapi.h

See Also

Previous Next