How can I tell inside my plugin if I am a VST or VST3?

If you’ve got a project that is being compiled for both VST (legacy) and VST3, is there some #define or some other way to determine, inside the code, that it is being compiled for VST vs. VST3? I did some poking around in the headers but only confused myself…

The processor code itself won’t be compiled seperately for VST/VST3 so I don’t think there is a compile time macro you can query, however you should be able to check which type is loaded at runtime through the public wrapperType member of your AudioProcessor

1 Like

perfect - thank you!