From ad50852aeb2dc7ce9dd50403c5998cbf98eb03ee Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 11 Apr 2022 20:53:25 +0200 Subject: [PATCH] Fix CLAP event output struct sizes --- src/wrapper/clap/wrapper.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wrapper/clap/wrapper.rs b/src/wrapper/clap/wrapper.rs index 32cf01ee..3af3c7a5 100644 --- a/src/wrapper/clap/wrapper.rs +++ b/src/wrapper/clap/wrapper.rs @@ -852,7 +852,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_ON, @@ -875,7 +875,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_OFF, @@ -897,7 +897,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note_expression { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_EXPRESSION, @@ -920,7 +920,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note_expression { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_EXPRESSION, @@ -943,7 +943,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note_expression { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_EXPRESSION, @@ -966,7 +966,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note_expression { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_EXPRESSION, @@ -989,7 +989,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note_expression { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_EXPRESSION, @@ -1012,7 +1012,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note_expression { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_EXPRESSION, @@ -1035,7 +1035,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::Basic => { let event = clap_event_note_expression { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_NOTE_EXPRESSION, @@ -1057,7 +1057,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::MidiCCs => { let event = clap_event_midi { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_MIDI, @@ -1082,7 +1082,7 @@ impl Wrapper

{ let event = clap_event_midi { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_MIDI, @@ -1106,7 +1106,7 @@ impl Wrapper

{ } if P::MIDI_OUTPUT >= MidiConfig::MidiCCs => { let event = clap_event_midi { header: clap_event_header { - size: mem::size_of::() as u32, + size: mem::size_of::() as u32, time, space_id: CLAP_CORE_EVENT_SPACE_ID, type_: CLAP_EVENT_MIDI,