'Binding a C++ virtual class for use in Python
I want to know a way of consuming the VST3 SDK from Python. In its essence, the VST3 architecture mimics COM.
My end goal is using the GetPluginFactory exported by a VST3 plugin in Python. This function returns a pointer to a C++ virtual class. I am not sure how this even works across different compilers, because C++ doesn't have a standardized ABI.
A host and plugin then communicate with each other by querying available "interfaces". I want to know how I can implement the host part in Python. I have used ctypes to mimic a virtual class via a Structure, but it doesn't work and useless, since a class has a vtable member and I am not sure how a C++ class looks like in C.
SWIG keeps popping up when I try to search for a solution. So is SWIG, the way to go? If yes, how?
I don't have any code, because all I tried till now results in memory violation errors.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
