Skip to content

Commit

Permalink
vst3: call sync_processor immediately before Processor::process for c…
Browse files Browse the repository at this point in the history
…larity
  • Loading branch information
micahrj committed Oct 26, 2023
1 parent 39b8cd7 commit 3d23b13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/format/vst3/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,6 @@ impl<P: Plugin> IAudioProcessorTrait for Component<P> {
return kNotInitialized;
};

self.sync_processor(processor);

let data = &*data;

let Ok(buffers) = process_state.scratch_buffers.get_buffers(
Expand Down Expand Up @@ -537,6 +535,7 @@ impl<P: Plugin> IAudioProcessorTrait for Component<P> {
}
}

self.sync_processor(processor);
processor.process(buffers, Events::new(&process_state.events));

kResultOk
Expand Down

0 comments on commit 3d23b13

Please sign in to comment.