AudioCategory enumeration

Applies to Windows and Windows Phone

Describes the purpose of the audio information in an audio stream. Used as a value by AudioCategory.

Syntax


public enum AudioCategory

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The AudioCategory enumeration has these members.

MemberValueDescription
Other0

All other streams.

ForegroundOnlyMedia1

Audio is for general media, for example audio for video, or streaming audio, but should not be played as background.

BackgroundCapableMedia2

Audio is for general media, for example audio for video, or streaming audio, and can be played as background.

Communications3

Audio is for peer-to-peer communications, for example chat or VoIP.

Alerts4

Audio is for system or application notifications, for example ring tones.

SoundEffects5

Audio is for sound effects.

GameEffects6

Audio is for game-specific sound effects.

GameMedia7

Audio is background (non-event or ambient) audio for games.

Remarks

For hardware audio offload to be automatically applied, the audio category must be set to ForegroundOnlyMedia or BackgroundCapableMedia. Hardware audio offload optimizes audio rendering which can improve functionality and battery life.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft