The bundle/dllHandle/soHandle property is private, so a getter method is needed to fetch the status of a loaded VST.
@@ -98,6 +98,7 @@ public:
void getSourceNames();
obs_audio_data *process(struct obs_audio_data *audio);
bool openInterfaceWhenActive = false;
+ bool vstLoaded();
bool isEditorOpen();
void onEditorClosed();
@@ -63,3 +63,8 @@ void VSTPlugin::unloadLibrary()
soHandle = nullptr;
}
+
+bool VSTPlugin::vstLoaded()
+{
+ return (soHandle != nullptr);
+}
@@ -87,3 +87,8 @@ void VSTPlugin::unloadLibrary()
bundle = NULL;
+ return (bundle != NULL);
@@ -89,3 +89,8 @@ void VSTPlugin::unloadLibrary()
dllHandle = nullptr;
+ return (dllHandle != nullptr);