mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
VST: properly query name from plugin
This commit is contained in:
parent
c03b658531
commit
84ccf721ba
1 changed files with 13 additions and 1 deletions
|
|
@ -611,10 +611,22 @@ vstfx_parse_vst_state (VSTState* vstfx)
|
||||||
string with any name*/
|
string with any name*/
|
||||||
|
|
||||||
char creator[65] = "Unknown\0";
|
char creator[65] = "Unknown\0";
|
||||||
|
char name[65] = "Unknown\0";
|
||||||
|
|
||||||
AEffect* plugin = vstfx->plugin;
|
AEffect* plugin = vstfx->plugin;
|
||||||
|
|
||||||
info->name = strdup (vstfx->handle->name);
|
|
||||||
|
plugin->dispatcher (plugin, effGetEffectName, 0, 0, name, 0);
|
||||||
|
|
||||||
|
if (strlen(name) == 0) {
|
||||||
|
plugin->dispatcher (plugin, effGetProductString, 0, 0, name, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (strlen(name) == 0) {
|
||||||
|
info->name = strdup (vstfx->handle->name);
|
||||||
|
} else {
|
||||||
|
info->name = strdup (name);
|
||||||
|
}
|
||||||
|
|
||||||
/*If the plugin doesn't bother to implement GetVendorString we will
|
/*If the plugin doesn't bother to implement GetVendorString we will
|
||||||
have pre-stuffed the string with 'Unkown' */
|
have pre-stuffed the string with 'Unkown' */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue