Function audio_processor_standalone::audio_processor_main_with_midi [−][src]
pub fn audio_processor_main_with_midi<Processor: AudioProcessor<SampleType = f32> + MidiEventHandler + Send + 'static>(
audio_processor: Processor,
handle: &Handle
)
Expand description
Run an AudioProcessor
/ MidiEventHandler
as a stand-alone cpal app and forward MIDI
messages received on all inputs to it.
Will internally create cpal::Stream
, MidiHost
and park the current thread. If the thread
is unparked the function will exit and the audio/MIDI threads will stop once these structures
are dropped.