Allow overriding sending behaviour for VST2 events

Now we can implement mutual recursion for VST2 plugins. Wish we didn't
have to.
This commit is contained in:
Robbert van der Helm
2021-05-20 14:46:10 +02:00
parent ccfda51a69
commit 3e6bf3adfd
2 changed files with 23 additions and 3 deletions
+7
View File
@@ -70,3 +70,10 @@ intptr_t DefaultDataConverter::return_value(const int /*opcode*/,
const intptr_t original) const {
return original;
}
EventResult DefaultDataConverter::send_event(
boost::asio::local::stream_protocol::socket& socket,
const Event& event) const {
write_object(socket, event);
return read_object<EventResult>(socket);
}