Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AUDIO_STREAM_CATEGORY enumeration

Specifies the category of an audio stream.

Syntax


typedef enum _AUDIO_STREAM_CATEGORY { 
  AudioCategory_Other                   = 0,
  AudioCategory_ForegroundOnlyMedia,
  AudioCategory_BackgroundCapableMedia,
  AudioCategory_Communications,
  AudioCategory_Alerts,
  AudioCategory_SoundEffects,
  AudioCategory_GameEffects,
  AudioCategory_GameMedia,
  AudioCategory_GameChat,
  AudioCategory_Speech,
  AudioCategory_Movie,
  AudioCategory_Media
} AUDIO_STREAM_CATEGORY;

Constants

AudioCategory_Other

Other audio stream.

AudioCategory_ForegroundOnlyMedia

Media 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_BackgroundCapableMedia

Media 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_Communications

Real-time communications, such as VOIP or chat.

AudioCategory_Alerts

Alert sounds.

AudioCategory_SoundEffects

Sound effects.

AudioCategory_GameEffects

Game sound effects.

AudioCategory_GameMedia

Background audio for games.

AudioCategory_GameChat

Game chat audio. Similar to AudioCategory_Communications except that AudioCategory_GameChat will not attenuate other streams.

AudioCategory_Speech

Speech.

AudioCategory_Movie

Stream that includes audio with dialog.

AudioCategory_Media

Stream that includes audio without dialog.

Remarks

Note that AudioCategory_Other is the only valid category for capture and loopback streams.

The values AudioCategory_ForegroundOnlyMedia and AudioCategory_BackgroundCapableMedia have been 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 Classic Windows application built with the Windows 10 SDK the will result in a compilation error.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Audiosessiontypes.h (include Audioclient.h)

 

 

Community Additions

Show:
© 2015 Microsoft