I’m working on a wrapper plugin based on Juce. It’s working fine but I have an issue related to the plugin name using AU interface.
The context: my wrapper is renamed with the regular plugin file name + (CP) suffix (ex: thePlugin.dll => thePlugin(CP).dll). When it is loaded, it opens a companion file (ex: thePlugin.cpd) to get (amongst others) the path to the regular plugin, then load it, instantiate the wrapper code and return to the host. The aim is to add some extra functionalities to a regular plugin.
No problem with VST, my wrapper it totally transparent to the host when I load the (CP) version of the plugin because it is copying the original plugin description before returning to the host. But when I try it using the AU format, I see only one plugin in the host’s list labeled with the default wrapper name, even several ***(CP).component are present in the Plug-Ins/Components folder.
So I guess that my issue is related to the plugin name since it is defined as static information in AppConfig.h (JucePlugin_Name) and used as is by JuceUICreationClass::description, which is a static method… that seems to be called before the plugin is instantiated anyway.
Well… finally I’m searching for a solution allowing my wrapper to return different strings from JuceUICreationClass::description depending on the wrapped plugin. I need to return distinct names, even if they are not the exact name of the original plugin. So my idea is to extract the wrapper file name from within JuceUICreationClass::description since this filename is similar to the original plugin’s name.
Do you have another idea?
If this idea is good, can you tell me how to proceed? I’m definitely not used with ObjectiveC (it’s precisely why I’m using Juce) and I have absolutely no idea on where to find any tip.
Many many thanks in advance!!!