mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-07 03:53:38 +00:00
obs-vst: Add reporting of vendor name
This commit is contained in:
parent
e7c40a1d29
commit
a96211a0ee
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue