Rename plugin.cpp to vst2-plugin.cpp

This commit is contained in:
Robbert van der Helm
2020-11-28 17:19:29 +01:00
parent f9775dced3
commit 9ece1b916e
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ shared_library(
'src/common/communication.cpp',
'src/common/utils.cpp',
'src/plugin/host-process.cpp',
'src/plugin/plugin.cpp',
'src/plugin/vst2-plugin.cpp',
'src/plugin/bridges/vst2.cpp',
'src/plugin/utils.cpp',
version_header,
@@ -24,20 +24,20 @@
#define VST_EXPORT __attribute__((visibility("default")))
// The main entry point for VST plugins should be called `VSTPluginMain``. The
// The main entry point for VST2 plugins should be called `VSTPluginMain``. The
// other one exist for legacy reasons since some old hosts might still use them.
// There's also another possible legacy entry point just called `main`, but GCC
// will refuse to compile a function called `main` that's not a regular C++ main
// function
// function.
/**
* The main VST plugin entry point. We first set up a bridge that connects to a
* Wine process that hosts the Windows VST plugin. We then create and return a
* The main VST2 plugin entry point. We first set up a bridge that connects to a
* Wine process that hosts the Windows VST2 plugin. We then create and return a
* VST plugin struct that acts as a passthrough to the bridge.
*
* To keep this somewhat contained this is the only place where we're doing
* manual memory management. Clean up is done when we receive the `effClose`
* opcode from the VST host (i.e. opcode 1).`
* opcode from the VST2 host (i.e. opcode 1).`
*/
extern "C" VST_EXPORT AEffect* VSTPluginMain(
audioMasterCallback host_callback) {