mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-15 07:53:55 +02:00
Move the editor handling back to Vst2Bridge
Since we can have multiple editors in Vst3Bridge.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include "../../common/communication/vst2.h"
|
||||
#include "../../common/configuration.h"
|
||||
#include "../editor.h"
|
||||
#include "../utils.h"
|
||||
#include "common.h"
|
||||
|
||||
@@ -66,6 +67,9 @@ class Vst2Bridge : public HostBridge {
|
||||
*/
|
||||
void run() override;
|
||||
|
||||
void handle_x11_events() override;
|
||||
void handle_win32_events() override;
|
||||
|
||||
/**
|
||||
* Forward the host callback made by the plugin to the host and return the
|
||||
* results.
|
||||
@@ -144,6 +148,13 @@ class Vst2Bridge : public HostBridge {
|
||||
*/
|
||||
Vst2Sockets<Win32Thread> sockets;
|
||||
|
||||
/**
|
||||
* The plugin editor window. Allows embedding the plugin's editor into a
|
||||
* Wine window, and embedding that Wine window into a window provided by the
|
||||
* host. Should be empty when the editor is not open.
|
||||
*/
|
||||
std::optional<Editor> editor;
|
||||
|
||||
/**
|
||||
* The MIDI events that have been received **and processed** since the last
|
||||
* call to `processReplacing()`. 99% of plugins make a copy of the MIDI
|
||||
|
||||
Reference in New Issue
Block a user