Trait StandaloneProcessor

Source
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§

Required Methods§

Source

fn processor(&mut self) -> &mut Self::Processor

Source

fn options(&self) -> &StandaloneOptions

Provided Methods§

Source

fn midi(&mut self) -> Option<&mut Self::Midi>

Source

fn supports_midi(&mut self) -> bool

Source

fn handle(&self) -> Option<AudioProcessorHandleRef>

Implementors§