I’m pretty new to the JUCE framework and I’m working on a project and I was wondering if I could even implement it because I need to somehow get the currently used DAW and project name.
I also need to know if the plugin was added more than once, whether on the same or a different channel.
For the current DAW, you can use PluginHostType. I’m not sure if there’s any straightforward way to get the project name in a way that works across multiple hosts and operating systems, though.
I want to create a Discord Rich Presence and thought this would be the best way to go as a VST plugin is the only way I know to run code across all DAWs on any OS.
That responds to hosts that provide the track name to the plugin, but I forget which hosts I’ve tested pass on that information. Most do not. (It also includes the track color, for some reason, but nothing else.)
Just a heads up that PluginHostType is broken on the latest Logic and FinalCutPro on OS 11 Big Sur:
Which the exact circumstances are to trigger that behaviour is yet to be determined. It has to do with the out of process rendering that Apple now proposes.