mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
obs-vst: Add reporting of vendor name
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user