AUDIO_STREAM_CATEGORY enumeration (audiosessiontypes.h)
Specifies the category of an audio stream.
Syntax
typedef enum _AUDIO_STREAM_CATEGORY {
AudioCategory_Other,
AudioCategory_ForegroundOnlyMedia,
AudioCategory_BackgroundCapableMedia,
AudioCategory_Communications,
AudioCategory_Alerts,
AudioCategory_SoundEffects,
AudioCategory_GameEffects,
AudioCategory_GameMedia,
AudioCategory_GameChat,
AudioCategory_Speech,
AudioCategory_Movie,
AudioCategory_Media,
AudioCategory_FarFieldSpeech,
AudioCategory_UniformSpeech,
AudioCategory_VoiceTyping
} AUDIO_STREAM_CATEGORY;
Constants
AudioCategory_OtherOther audio stream. |
AudioCategory_ForegroundOnlyMediaMedia that will only stream when the app is in the foreground. This enumeration value has been deprecated. For more information, see the Remarks section. |
AudioCategory_BackgroundCapableMediaMedia that can be streamed when the app is in the background. This enumeration value has been deprecated. For more information, see the Remarks section. |
AudioCategory_CommunicationsReal-time communications, such as VOIP or chat. |
AudioCategory_AlertsAlert sounds. |
AudioCategory_SoundEffectsSound effects. |
AudioCategory_GameEffectsGame sound effects. |
AudioCategory_GameMediaBackground audio for games. |
AudioCategory_GameChatGame chat audio. Similar to AudioCategory_Communications except that AudioCategory_GameChat will not attenuate other streams. |
AudioCategory_SpeechSpeech. |
AudioCategory_MovieStream that includes audio with dialog. |
AudioCategory_MediaStream that includes audio without dialog. |
AudioCategory_FarFieldSpeechMedia is audio captured with the intent of capturing voice sources located in the ‘far field’. (Far away from the microphone.) |
AudioCategory_UniformSpeechMedia is captured audio that requires consistent speech processing for the captured audio stream across all Windows devices. Used by applications that process speech data using machine learning algorithms. |
AudioCategory_VoiceTypingMedia is audio captured with the intent of enabling dictation or typing by voice. |
Remarks
Note that only a subset of the audio stream categories are valid for certain stream types.
| Stream type | Valid categories |
|---|---|
| Render stream | All categories are valid. |
| Capture stream | AudioCategory_Communications, AudioCategory_Speech, AudioCategory_Other |
| Loopback stream | AudioCategory_Other |
Games should categorize their music streams as AudioCategory_GameMedia so that game music mutes automatically if another application plays music in the background. Music or video applications should categorize their streams as AudioCategory_Media or AudioCategory_Movie so they will take priority over AudioCategory_GameMedia streams. Game audio for in-game cinematics or cutscenes, when the audio is premixed or for creative reasons should take priority over background audio, should also be categorized as Media or Movie.
The values AudioCategory_ForegroundOnlyMedia and AudioCategory_BackgroundCapableMedia are deprecated. For Windows Store apps, these values will continue to function the same when running on Windows 10 as they did on Windows 8.1. Attempting to use these values in a Universal Windows Platform (UWP) app, will result in compilation errors and an exception at runtime. Using these values in a Windows desktop application built with the Windows 10 SDK the will result in a compilation error.
Requirements
| Minimum supported client | Windows 8 [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
| Header | audiosessiontypes.h (include Audioclient.h) |