Add handlers for control messages and callbacks

This commit is contained in:
Robbert van der Helm
2020-12-04 14:06:16 +01:00
parent e889ad22e2
commit 2e9b100090
4 changed files with 21 additions and 0 deletions
+5
View File
@@ -47,6 +47,11 @@ Vst3Bridge::Vst3Bridge(MainContext& main_context,
// TODO: We should send a copy of the configuration from the plugin at this
// point config = sockets.host_vst_control.receive_single<Configuration>();
control_handler = Win32Thread([&]() {
// TODO: Handle control messages
// sockets.host_vst_control.receive_multi();
});
}
void Vst3Bridge::run() {
+5
View File
@@ -79,4 +79,9 @@ class Vst3Bridge : public HostBridge {
* threads to exit.
*/
Vst3Sockets<Win32Thread> sockets;
/**
* Handles control messages host over the `hsot_vst_control` sockets.
*/
Win32Thread control_handler;
};