IXAudio2VoiceCallback::OnLoopEnd method (xaudio2.h)

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

Syntax

void OnLoopEnd(
  void *pBufferContext
);

Parameters

pBufferContext

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.

Platform Requirements

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

Requirements

Requirement Value
Target Platform Windows
Header xaudio2.h

See also

How to: Use Source Voice Callbacks

IXAudio2VoiceCallback

XAudio2 Callbacks