IXAudio2VoiceCallback::OnLoopEnd Method

Called when the voice reaches the end position of a loop.

Syntax

public:
void OnLoopEnd(
         void *pBufferContext
)  

Parameters

pBufferContext
Type: void *

Context pointer that was assigned to the pContext member of the XAUDIO2_BUFFER structure when the buffer was submitted.

Return value

None.

Remarks

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.

Requirements

Header: Declared in xaudio2.h.

Library: Use xaudio2.lib.

See also

IXAudio2VoiceCallback

IXAudio2VoiceCallback Members