ERole
Collapse the table of content
Expand the table of content

ERole enumeration

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

Syntax


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

Constants

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mmdeviceapi.h

See also

Core Audio Enumerations
IMMDeviceEnumerator::GetDefaultAudioEndpoint
IMMNotificationClient::OnDefaultDeviceChanged

 

 

Show:
© 2016 Microsoft