Trait thindx::xaudio2::EngineCallback
[−]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
fn on_processing_pass_start(&self)
fn on_processing_pass_start(&self)
[microsoft.com] Called by XAudio2 just before an audio processing pass begins.
fn on_processing_pass_end(&self)
fn on_processing_pass_end(&self)
[microsoft.com] Called just after an audio processing pass ends.
fn on_critical_error(&self, error: HResult)
fn on_critical_error(&self, error: HResult)
[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
fn wrap(self) -> EngineCallbackWrapper<Self>
fn wrap(self) -> EngineCallbackWrapper<Self>
Convert self
into a IXAudio2EngineCallback implementation suitable for passing to IXAudio2Ext::register_for_callbacks