Hi,
Our code is relying on this function to store plugins in projects, instead of using xml. But it makes projects not portable:
Description says that createIdentifierString()
should be plugin path agnostic: JUCE: PluginDescription Class Reference
but it’s definitely generates hash on plugin’s path:
static String getPluginDescSuffix (const PluginDescription& d, int uid)
{
return "-" + String::toHexString (d.fileOrIdentifier.hashCode())
+ "-" + String::toHexString (uid);
}
I’ve tested it with GitHub - ffAudio/AudioPluginScanner: Scans file or folder for available audio plugins (JUCE) (just added createIdentifierString() output):
./AudioPluginScanner --file="/usr/lib64/vst/helm.so" --plugin="dbfile"
JUCE v7.0.7
scanning file: /usr/lib64/vst/helm.so
Attempting to load VST: /usr/lib64/vst/helm.so
Creating VST instance: helm
Initialising VST: helm (0.0.9.0)
VST-helm-7217d5be-48656c6d
and the same in another dir:
./AudioPluginScanner --file="/home/kv/.vst/helm.so" --plugin="dbfile"
JUCE v7.0.7
scanning file: /home/kv/.vst/helm.so
Attempting to load VST: /home/kv/.vst/helm.so
Creating VST instance: helm
Initialising VST: helm (0.0.9.0)
VST-helm-2c4fe109-48656c6d