mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add a SysExMessage type to Plugin
This is needed to enable sending and receiving SysEx #54. Because associated type defaults still are not stable, this requires every plugin that doesn't need this to set this to the unit type: ```rust type SysExMessage = (); ```
This commit is contained in:
@@ -134,6 +134,10 @@ impl Plugin for Gain {
|
||||
// splits.
|
||||
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
||||
|
||||
// If the plugin can send or receive SysEx messages, it can define a type to wrap around those
|
||||
// messages here. The type implements the `SysExMessage` trait, which allows conversion to and
|
||||
// from plain byte buffers.
|
||||
type SysExMessage = ();
|
||||
// More advanced plugins can use this to run expensive background tasks. See the field's
|
||||
// documentation for more information. `()` means that the plugin does not have any background
|
||||
// tasks.
|
||||
|
||||
Reference in New Issue
Block a user