This is a programming question about VST2 plugs in Linux.
When you get a opcode 14 to the dispatcher 'effEditOpen' that is what is used to open the GUI for the VST2 plugin.
What exactly is in that 'void *ptr' that the dispatcher gives you in Linux?
And how should you use it?
Is it a x11 variable of the type 'Window'?
And can a declaration of a such parameter be...
Window *win;
But exactly is it a pointer to?
How do you open the plugin editor in Linux VST2 plugs?
Moderators: MattKingUSA, khz
- sadko4u
- Established Member
- Posts: 989
- Joined: Mon Sep 28, 2015 9:03 pm
- Has thanked: 2 times
- Been thanked: 361 times
Re: How do you open the plugin editor in Linux VST2 plugs?
You can consider the following:
Code: Select all
#include <X11/Xlib.h>
Window wnd = reinterpret_cast<Window>(ptr);
// TODO: Create a child X11 window with wnd as parent
LSP (Linux Studio Plugins) Developer and Maintainer.
Re: How do you open the plugin editor in Linux VST2 plugs?
Hi xos,
wnd was created from the VST host using:
You can use the window to draw into, or create your own and use XReparentWindow() to fit your window into the window hierarchy.
wnd was created from the VST host using:
Code: Select all
#include <X11/Xlib.h>
Window wnd = XCreateSimpleWindow(...)
// or Window wnd = XCreateWindow(...)