Move work dropping to Vst2PluginBridge destructor

For consistency with `Vst3PluginBridge`.
This commit is contained in:
Robbert van der Helm
2020-12-17 13:51:39 +01:00
parent a5834cd438
commit f71c7a3895
2 changed files with 15 additions and 13 deletions
+6
View File
@@ -49,6 +49,12 @@ class Vst2PluginBridge : PluginBridge<Vst2Sockets<std::jthread>> {
*/
Vst2PluginBridge(audioMasterCallback host_callback);
/**
* Terminate the Wine plugin host process and drop all work when the module
* gets unloaded.
*/
~Vst2PluginBridge();
// The four below functions are the handlers from the VST2 API. They are
// called through proxy functions in `plugin.cpp`.