Enum DefaultRole
- Namespace
- AudioDeviceLib
- Assembly
- AudioDeviceLib.dll
Which Windows default-device role(s) to assign when setting a default device.
This is a bit flag: the three real Windows roles (Console,
Multimedia, Communications) can be combined, and each
set flag maps to one native Role call. Default and
All are convenience combinations.
[Flags]
public enum DefaultRole
Fields
All = Console | DefaultConsole + Multimedia + Communications. The most robust "make this THE default device for everything" option; use it when some applications follow the Console role.
Communications = 4Communications role (voice chat) - maps to
Role.Communications. Matches-CommunicationOnly.Console = 1Console role (system sounds, games, voice commands) - maps to
Role.Console.Default = Multimedia | CommunicationsMultimedia + Communications. This matches
Set-AudioDevicecalled with no role switch (and, like the cmdlet, does NOT set the Console role).Multimedia = 2Multimedia role (music, movies) - maps to
Role.Multimedia. Matches-DefaultOnly.