mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Add group host support to the plugin
The difference between individual hosting and group hosting will have to be encapsulated in a class to keep the rest of the plugin bridge clean.
This commit is contained in:
@@ -234,6 +234,27 @@ class PluginBridge {
|
||||
* @see launch_vst_host
|
||||
*/
|
||||
boost::process::child vst_host;
|
||||
/**
|
||||
* The PID of the vst host process. Needed for checking whether the group
|
||||
* host is still active if we are connecting to an already running group
|
||||
* host instance.
|
||||
*
|
||||
* TODO: Remove this after encapsulating the minor differences in individual
|
||||
* and group host handling
|
||||
*/
|
||||
pid_t vst_host_pid;
|
||||
/**
|
||||
* A thread that waits for the group host to have started and then ask it to
|
||||
* host our plugin. This is used to defer the request since it may take a
|
||||
* little while until the group host process is up and running. This way we
|
||||
* don't have to delay the rest of the initialization process.
|
||||
*
|
||||
* TODO: Remove this after encapsulating the minor differences in individual
|
||||
* and group host handling
|
||||
* TODO: Replace this with inotify to prevent delays and to reduce wasting
|
||||
* resources
|
||||
*/
|
||||
std::thread group_host_connect_handler;
|
||||
|
||||
/**
|
||||
* A scratch buffer for sending and receiving data during `process` and
|
||||
|
||||
Reference in New Issue
Block a user