mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-24 12:57:31 +02:00
Add a function to parse a CLAP event
This commit is contained in:
@@ -268,6 +268,12 @@ struct Midi2 {
|
||||
* reconstructed back to a `clap_event_header`.
|
||||
*/
|
||||
struct alignas(16) Event {
|
||||
/**
|
||||
* Parse a CLAP event. Returns a nullopt if yabridge does not support the
|
||||
* event.
|
||||
*/
|
||||
static std::optional<Event> parse(const clap_event_header_t& generic_event);
|
||||
|
||||
/**
|
||||
* The time from the event header.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user