1
0
Fork 0

Document the MidiSysEx event's availability

This commit is contained in:
Robbert van der Helm 2023-01-31 18:45:30 +01:00
parent b7849f9a7a
commit d9cf78e72a
2 changed files with 5 additions and 3 deletions

View file

@ -311,9 +311,10 @@ pub enum NoteEvent<S: SysExMessage> {
/// The program number, in `0..128`.
program: u8,
},
/// A MIDI SysEx message supported by the plugin's `SysExMessage` type. If the conversion from
/// the raw byte array fails (e.g. the plugin doesn't support this kind of message), then this
/// will be logged during debug builds of the plugin, and no event is emitted.
/// A MIDI SysEx message supported by the plugin's `SysExMessage` type, available on
/// [`MidiConfig::Basic`] and up. If the conversion from the raw byte array fails (e.g. the
/// plugin doesn't support this kind of message), then this will be logged during debug builds
/// of the plugin, and no event is emitted.
MidiSysEx { timing: u32, message: S },
}

View file

@ -136,6 +136,7 @@ impl<P: Plugin> Backend<P> for Jack {
}));
}
// TODO: Support SysEx
output_events.clear();
if cb(&mut buffer, transport, &input_events, &mut output_events) {
if let Some(midi_output) = &midi_output {