obs-vst: Add reporting of vendor name

This commit is contained in:
Crocodile Gena
2023-01-28 23:07:48 -08:00
committed by Jim
parent e7c40a1d29
commit a96211a0ee
+4 -1
View File
@@ -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();