pub trait StandaloneProcessor: Send + 'static {
type Processor: AudioProcessor<SampleType = f32>;
type Midi: MidiEventHandler;
// Required methods
fn processor(&mut self) -> &mut Self::Processor;
fn options(&self) -> &StandaloneOptions;
// Provided methods
fn midi(&mut self) -> Option<&mut Self::Midi> { ... }
fn supports_midi(&mut self) -> bool { ... }
fn handle(&self) -> Option<AudioProcessorHandleRef> { ... }
}Expand description
Abstract standalone processor with runtime optional MIDI handling.
Required Associated Types§
type Processor: AudioProcessor<SampleType = f32>
type Midi: MidiEventHandler
Required Methods§
Provided Methods§
fn midi(&mut self) -> Option<&mut Self::Midi>
fn supports_midi(&mut self) -> bool
fn handle(&self) -> Option<AudioProcessorHandleRef>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".