1
0
Fork 0

Fix events not working in release builds

This commit is contained in:
Robbert van der Helm 2022-02-15 23:11:50 +01:00
parent 80feb320db
commit dcca3f8bf4

View file

@ -779,7 +779,7 @@ impl<P: Plugin> IAudioProcessor for Wrapper<P> {
input_events.clear();
let mut event: MaybeUninit<_> = MaybeUninit::uninit();
for i in 0..num_events {
nih_debug_assert_eq!(events.get_event(i, event.as_mut_ptr()), kResultOk);
assert_eq!(events.get_event(i, event.as_mut_ptr()), kResultOk);
let event = event.assume_init();
let timing = event.sample_offset as u32;
if event.type_ == vst3_sys::vst::EventTypes::kNoteOnEvent as u16 {