mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-19 09:53:56 +02:00
Add a function for temporarily blocking event loop
This can be used to prevent the Win32 message loop from running while there are plugins in some partially initialized state.
This commit is contained in:
@@ -59,6 +59,8 @@ class Vst2Bridge : public HostBridge {
|
||||
std::string plugin_dll_path,
|
||||
std::string endpoint_base_dir);
|
||||
|
||||
bool inhibits_event_loop() override;
|
||||
|
||||
/**
|
||||
* Here we'll handle incoming `dispatch()` messages until the sockets get
|
||||
* closed during `effClose()`.
|
||||
@@ -127,6 +129,12 @@ class Vst2Bridge : public HostBridge {
|
||||
*/
|
||||
AEffect* plugin;
|
||||
|
||||
/**
|
||||
* Whether `effOpen()` has already been called. Used in
|
||||
* `HostBridge::inhibits_event_loop` to work around a bug in T-RackS 5.
|
||||
*/
|
||||
bool is_initialized = false;
|
||||
|
||||
/**
|
||||
* The thread that responds to `getParameter` and `setParameter` requests.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user