mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Serialize midi events using vectors
Easier than to implement C-style arrays in Bitsery and this way we also don't have to worry about cleanup. Serum still segfaults with multiple events so something is still off.
This commit is contained in:
@@ -31,7 +31,8 @@ intptr_t send_event(boost::asio::local::stream_protocol::socket& socket,
|
||||
// There are some events that need specific structs that we can't simply
|
||||
// serialize as a string because they might contain null bytes
|
||||
if (is_dispatch && opcode == effProcessEvents) {
|
||||
payload = *static_cast<VstEvents*>(data);
|
||||
// Move the elements into a vector for easier serialization
|
||||
payload = DynamicVstEvents(*static_cast<VstEvents*>(data));
|
||||
} else {
|
||||
// TODO: More of these structs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user