diff --git a/src/wrapper/standalone/context.rs b/src/wrapper/standalone/context.rs index 8e12d4bc..565a6334 100644 --- a/src/wrapper/standalone/context.rs +++ b/src/wrapper/standalone/context.rs @@ -33,9 +33,11 @@ pub(crate) struct WrapperInitContext<'a, P: Plugin, B: Backend> { pub(crate) struct WrapperProcessContext<'a, P: Plugin, B: Backend> { #[allow(dead_code)] pub(super) wrapper: &'a Wrapper
,
- // TODO: Events
- // pub(super) input_events_guard: AtomicRefMut<'a, VecDeque {
return false;
}
- // TODO: Do something with the input and output events
-
let sample_rate = self.buffer_config.sample_rate;
let mut transport = Transport::new(sample_rate);
transport.pos_samples = Some(num_processed_samples);
@@ -389,7 +388,7 @@ impl {
inputs: &mut [],
outputs: &mut [],
},
- &mut self.make_process_context(transport),
+ &mut self.make_process_context(transport, input_events, output_events),
) {
nih_error!("The plugin returned an error while processing:");
nih_error!("{}", err);
@@ -481,9 +480,17 @@ impl {
WrapperInitContext { wrapper: self }
}
- fn make_process_context(&self, transport: Transport) -> WrapperProcessContext<'_, P, B> {
+ fn make_process_context<'a>(
+ &'a self,
+ transport: Transport,
+ input_events: &'a [NoteEvent],
+ output_events: &'a mut Vec