IXAudio2EngineCallback interface

The IXAudio2EngineCallback interface contains methods that notify the client when certain events happen in the IXAudio2 engine.

This interface should be implemented by the XAudio2 client. XAudio2 calls these methods via an interface pointer provided by the client, using the XAudio2Create method. Methods in this interface return void, rather than an HRESULT.

See XAudio2 Callbacks for restrictions on callback implementation.

Methods

The IXAudio2EngineCallback interface has these methods.
Method Description
OnCriticalError Called if a critical system error occurs that requires XAudio2 to be closed down and restarted.
OnProcessingPassEnd Called by XAudio2 just after an audio processing pass ends.
OnProcessingPassStart Called by XAudio2 just before an audio processing pass begins.

Methods

The IXAudio2EngineCallback interface has these methods.

Method Description
IXAudio2EngineCallback::OnCriticalError Called if a critical system error occurs that requires XAudio2 to be closed down and restarted.
IXAudio2EngineCallback::OnProcessingPassEnd Called by XAudio2 just after an audio processing pass ends.
IXAudio2EngineCallback::OnProcessingPassStart Called by XAudio2 just before an audio processing pass begins.

Remarks

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

XAudio2 Callbacks

XAudio2 Interfaces