Add a function to parse a CLAP event

This commit is contained in:
Robbert van der Helm
2022-10-01 02:00:05 +02:00
parent 5c714a87d2
commit 866b7660de
4 changed files with 205 additions and 0 deletions
+6
View File
@@ -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.
*/