IXAudio2::CommitChanges Method

Atomically applies a set of operations that are tagged with a given identifier.

Syntax

public:
HRESULT CommitChanges(
         UINT32 OperationSet
)  

Parameters

OperationSet
Type: UINT32 

Identifier of the set of operations to be applied. To commit all pending operations, pass XAUDIO2_COMMIT_ALL.

Return value

Type: HRESULT 

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

Remarks

CommitChanges does nothing if no operations are tagged with the given identifier.

See the XAudio2 Operation Sets overview about working with CommitChanges and XAudio2 interface methods that may be deferred.

Requirements

Header: Declared in xaudio2.h.

Library: Use xaudio2.lib.

See also

IXAudio2

IXAudio2 Members