Contains information about the creation flags, input channels, and sample rate of a voice.
typedef struct XAUDIO2_VOICE_DETAILS {
UINT32 CreationFlags;
UINT32 ActiveFlags;
UINT32 InputChannels;
UINT32 InputSampleRate;
} XAUDIO2_VOICE_DETAILS;
CreationFlags
Flags used to create the voice.
| Flag | Value | Description |
|---|---|---|
| XAUDIO2_VOICE_NOPITCH | 0x0002 | Used in CreateSourceVoice. |
| XAUDIO2_VOICE_NOSRC | 0x0004 | Used in CreateSourceVoice. |
| XAUDIO2_VOICE_USEFILTER | 0x0008 | Used in CreateSubmixVoice and CreateSourceVoice. |
| XAUDIO2_PLAY_TAILS | 0x0020 | Used in Stop. |
| XAUDIO2_END_OF_STREAM | 0x0040 | Used in XAUDIO2_BUFFER flags. |
| XAUDIO2_SEND_USEFILTER | 0x0080 | Used in XAUDIO2_SEND_DESCRIPTOR flags. |
| XAUDIO2_VOICE_NOSAMPLESPLAYED | 0x0100 | Used in GetState. |
| XAUDIO2_VOICE_USE_SHAPE | 0x0200 | Not used |
| XAUDIO2_DO_NOT_USE_SHAPE | 0x0400 | Used in XAudio2Create and CreateSourceVoice to prohibit the engine/voice from using SHAPE (including XMA). |
| XAUDIO2_DO_NOT_SHARE_SHAPE_CONTEXTS | 0x0800 | Used in XAudio2Create to force exclusive use of the SHAPE contexts provided (no other engine instance will share the contexts). |
ActiveFlags
Flags that are currently set on the voice.
InputChannels
The number of input channels the voice expects.
InputSampleRate
The input sample rate the voice expects.
Header: Declared in xaudio2.h.
Library: Use xaudio2.lib.