Hello @Lucas Philippi,
According to How to: Use Source Voice Callbacks, you need to
- Create a class that inherits from the IXAudio2VoiceCallback interface.
- Create a source voice with IXAudio2::CreateSourceVoice using an instance of the callback class created previously as the pCallback parameter.