IXAudio2::UnregisterForCallbacks Method

Removes an IXAudio2EngineCallback pointer from the XAudio2 engine callback list.

Syntax

public:
void UnregisterForCallbacks(
         IXAudio2EngineCallback *pCallback
)  

Parameters

pCallback
Type: IXAudio2EngineCallback *

[in] IXAudio2EngineCallback pointer to remove from the XAudio2 engine callback list. If the given pointer is present more than once in the list, only the first instance in the list will be removed.

Return value

None.

Remarks

It is invalid to call UnregisterForCallbacks from within a callback (that is, IXAudio2EngineCallback or IXAudio2VoiceCallback).

Requirements

Header: Declared in xaudio2.h.

Library: Use xaudio2.lib.

See also

IXAudio2

IXAudio2 Members