pub trait EngineCallback: Sync {
    fn on_processing_pass_start(&self);
    fn on_processing_pass_end(&self);
    fn on_critical_error(&self, error: HResult);

    fn wrap(self) -> EngineCallbackWrapper<Self> { ... }
}
Expand description

IXAudio2EngineCallback in trait form

Required Methods

[microsoft.com] Called by XAudio2 just before an audio processing pass begins.

[microsoft.com] Called just after an audio processing pass ends.

[microsoft.com] Called in the event of a critical system error which requires XAudio2 to be closed down and restarted. The error code is given in Error.

Provided Methods

Convert self into a IXAudio2EngineCallback implementation suitable for passing to IXAudio2Ext::register_for_callbacks

Implementors