IXAudio2SourceVoice::GetState Method
Returns the voice's current cursor position data.
Syntax
void GetState(
XAUDIO2_VOICE_STATE *pVoiceState
)
Parameters
- pVoiceState
Pointer to an XAUDIO2_VOICE_STATE structure containing the state of the voice.
Return Value
None.
Remarks
If a client needs to obtain the correlated positions of several voices (i.e. to know exactly which sample of a given voice is playing when a given sample of another voice is playing) it must make GetState calls in an XAudio2 engine callback, to ensure that none of the voices advance while the calls are being made. See the XAudio2 Callbacks overview for information about using XAudio2 callbacks.
Requirements
Header: Declared in xaudio2.h.