ERole 枚举 (mmdeviceapi.h)

ERole 枚举定义常量,这些常量指示系统已分配给音频终结点设备的角色。

语法

typedef enum __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0002 {
  eConsole = 0,
  eMultimedia,
  eCommunications,
  ERole_enum_count
} ERole;

常量

 
eConsole
值: 0
游戏、系统通知声音和语音命令。
eMultimedia
音乐、电影、旁白和实时音乐录制。
eCommunications
语音通信 () 与其他人交谈。
ERole_enum_count
ERole 枚举中的成员数 (不计算ERole_enum_count成员) 。

注解

IMMDeviceEnumerator::GetDefaultAudioEndpointIMMNotificationClient::OnDefaultDeviceChanged 方法使用 ERole 枚举中定义的常量。

有关详细信息,请参阅 设备角色

要求

要求
最低受支持的客户端 Windows Vista [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 [仅限桌面应用]
标头 mmdeviceapi.h

另请参阅

核心音频枚举

IMMDeviceEnumerator::GetDefaultAudioEndpoint

IMMNotificationClient::OnDefaultDeviceChanged