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§

source§

impl<P> StandaloneProcessor for StandaloneAudioOnlyProcessor<P>where P: AudioProcessor<SampleType = f32> + Send + 'static,

source§

impl<P> StandaloneProcessor for StandaloneProcessorImpl<P>where P: AudioProcessor<SampleType = f32> + Send + 'static + MidiEventHandler,

§

type Processor = P

§

type Midi = P