Browse Source

obs-vst: Add reporting of vendor name

Crocodile Gena 2 years ago
parent
commit
a96211a0ee
1 changed files with 4 additions and 1 deletions
  1. 4 1
      plugins/obs-vst/VSTPlugin.cpp

+ 4 - 1
plugins/obs-vst/VSTPlugin.cpp

@@ -24,7 +24,6 @@ intptr_t VSTPlugin::hostCallback_static(AEffect *effect, int32_t opcode,
 					void *ptr, float opt)
 {
 	UNUSED_PARAMETER(opt);
-	UNUSED_PARAMETER(ptr);
 
 	VSTPlugin *plugin = nullptr;
 	if (effect && effect->user) {
@@ -48,6 +47,10 @@ intptr_t VSTPlugin::hostCallback_static(AEffect *effect, int32_t opcode,
 		}
 		return 0;
 
+	case audioMasterGetVendorString:
+		strncpy((char *)ptr, "OBS Studio", 11);
+		return 1;
+
 	case audioMasterGetTime:
 		if (plugin) {
 			return (intptr_t)plugin->GetTimeInfo();