IXAudio2VoiceCallback interface (xaudio2.h)
The IXAudio2VoiceCallback interface contains methods that notify the client when certain events happen in a given IXAudio2SourceVoice.
This interface should be implemented by the XAudio2 client. XAudio2 calls these methods through an interface pointer provided by the client in the IXAudio2::CreateSourceVoice method. Methods in this interface return void, rather than an HRESULT.
See the XAudio2 Callbacks topic for restrictions on callback implementation.
|OnBufferEnd||Called when the voice finishes processing a buffer.|
|OnBufferStart||Called when the voice is about to start processing a new audio buffer.|
|OnLoopEnd||Called when the voice reaches the end position of a loop.|
|OnStreamEnd||Called when the voice has just finished playing a contiguous audio stream.|
|OnVoiceError||Called when a critical error occurs during voice processing.|
|OnVoiceProcessingPassEnd||Called just after the processing pass for the voice ends.|
|OnVoiceProcessingPassStart||Called during each processing pass for each voice, just before XAudio2 reads data from the voice's buffer queue.|
The IXAudio2VoiceCallback interface has these methods.
Called when the voice finishes processing a buffer.
Called when the voice is about to start processing a new audio buffer.
Called when the voice reaches the end position of a loop.
Called when the voice has just finished playing a contiguous audio stream.
Called when a critical error occurs during voice processing.
Called just after the processing pass for the voice ends.
Called during each processing pass for each voice, just before XAudio2 reads data from the voice's buffer queue.