Add a general entry point to HostBridge

Since for all plugin types we would need to start listening for incoming
events this way.
This commit is contained in:
Robbert van der Helm
2020-12-02 00:35:41 +01:00
parent 3dd5090023
commit 0eb80fe866
5 changed files with 31 additions and 29 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ Vst2Bridge::Vst2Bridge(MainContext& main_context,
});
}
void Vst2Bridge::handle_dispatch() {
void Vst2Bridge::run() {
sockets.host_vst_dispatch.receive_events(
std::nullopt, [&](Event& event, bool /*on_main_thread*/) {
if (event.opcode == effProcessEvents) {