Called when the voice reaches the end position of a loop.
public:
void OnLoopEnd(
void *pBufferContext
)
pBufferContext
Type: void *
Context pointer that was assigned to the pContext member of the XAUDIO2_BUFFER structure when the buffer was submitted.
pBufferContext is the context pointer originally provided by the pContext member of the XAUDIO2_BUFFER structure, which may be NULL.
OnLoopEnd is not sample-accurate; that is, actions in the callback do not occur at the exact moment that a given sample is being processed. It is only guaranteed to be called shortly after the last sample in the loop has been processed.
For information about the IXAudio2VoiceCallback interface methods, see the XAudio2 Callbacks section.
Header: Declared in xaudio2.h.
Library: Use xaudio2.lib.