Skip to content

Latest commit

 

History

History
98 lines (72 loc) · 3.63 KB

nf-xaudio2-ixaudio2masteringvoice-getchannelmask.md

File metadata and controls

98 lines (72 loc) · 3.63 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:xaudio2.IXAudio2MasteringVoice.GetChannelMask
IXAudio2MasteringVoice::GetChannelMask (xaudio2.h)
Returns the channel mask for this voice.
GetChannelMask
GetChannelMask method [XAudio2 Audio Mixing APIs]
GetChannelMask method [XAudio2 Audio Mixing APIs]
IXAudio2MasteringVoice interface
IXAudio2MasteringVoice interface [XAudio2 Audio Mixing APIs]
GetChannelMask method
IXAudio2MasteringVoice.GetChannelMask
IXAudio2MasteringVoice::GetChannelMask
xaudio2.ixaudio2masteringvoice_interface_getchannelmask
xaudio2/IXAudio2MasteringVoice::GetChannelMask
xaudio2\ixaudio2masteringvoice_interface_getchannelmask.htm
xaudio2
M:Microsoft.directx_sdk.ixaudio2masteringvoice.IXAudio2MasteringVoice.GetChannelMask(DWORD@)
12/05/2018
GetChannelMask, GetChannelMask method [XAudio2 Audio Mixing APIs], GetChannelMask method [XAudio2 Audio Mixing APIs],IXAudio2MasteringVoice interface, IXAudio2MasteringVoice interface [XAudio2 Audio Mixing APIs],GetChannelMask method, IXAudio2MasteringVoice.GetChannelMask, IXAudio2MasteringVoice::GetChannelMask, xaudio2.ixaudio2masteringvoice_interface_getchannelmask, xaudio2/IXAudio2MasteringVoice::GetChannelMask
xaudio2.h
Windows
Windows
19H1
IXAudio2MasteringVoice::GetChannelMask
xaudio2/IXAudio2MasteringVoice::GetChannelMask
c++
APIRef
kbSyntax
COM
xaudio2.h
IXAudio2MasteringVoice.GetChannelMask

IXAudio2MasteringVoice::GetChannelMask

-description

Returns the channel mask for this voice.

-parameters

-param pChannelmask [out]

Returns the channel mask for this voice. This corresponds to the dwChannelMask member of the WAVEFORMATEXTENSIBLE structure.

-returns

This method does not return a value.

-remarks

The pChannelMask argument is a bit-mask of the various channels in the speaker geometry reported by the audio system. This information is needed for the X3DAudioInitialize SpeakerChannelMask parameter.

The X3DAUDIO.H header declares a number of SPEAKER_ positional defines to decode these channels masks.

Examples include:

SPEAKER_STEREO // SPEAKER_FRONT_LEFT (0x1) | SPEAKER_FRONT_RIGHT (0x2) 

SPEAKER_5POINT1 // SPEAKER_FRONT_LEFT (0x1) | SPEAKER_FRONT_RIGHT (0x2)
                                    // | SPEAKER_FRONT_CENTER (0x4)
                                    // | SPEAKER_LOW_FREQUENCY (0x8)
                                    // | SPEAKER_BACK_LEFT (0x10) | SPEAKER_BACK_RIGHT (0x20)
Note  For the DirectX SDK versions of XAUDIO, the channel mask for the output device was obtained via the IXAudio2::GetDeviceDetails method, which doesn't exist in Windows 8 and later.
 

Platform Requirements

Windows 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8)

-see-also

IXAudio2MasteringVoice