pub trait OnAudioBuffer {
    fn call(&mut self, args: OnAudioBufferArgs<'_>);
}
Expand description

Consumers need to implement this trait in order to be called back in the real-time audio thread.

See audio_reg_hardware_hook_add().

Required Methods

The actual callback function.

It’s called twice per frame, first with is_post being false, then true.

Implementors