IXAudio2SourceVoice::ExitLoop method

Stops looping the voice when it reaches the end of the current loop region.

Syntax

HRESULT ExitLoop(
  UINT32 OperationSet X2DEFAULT
);

Parameters

X2DEFAULT

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

Return Value

Returns S_OK if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

Remarks

If the cursor for the voice is not in a loop region, ExitLoop does nothing.

Platform Requirements

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

Requirements

   
Target Platform Windows
Header xaudio2.h

See Also

IXAudio2SourceVoice