Detecting DAW architecture?


I need to detect the architecture of the DAW hosting my VST.
What is the best method to obtain it?


There’s really nothing for that in the VST spec…

If you want to design a 32-bit and 64-bit VST, that’s a compile time thing. And loading a plug of one arch. into a DAW of a different arch. requires a bridge.

Well, I do have both 32-bit and 64-bit versions of my VST, but I wanted to alert the user that he is using an incompatible combination (using a bridge) and that he should switch to the other platform to have a better experience.
Can’t I just get the architecture of the running process (VST or not)?

Not to my knowledge…

I think you can use “lipo” on OSX but I think it’s more difficult on Windows. Don’t hosts normally inform the user when this kind of bridging happens though? I think Reaper at least shows the bridge as a new window.

Most of them don’t, some may have different appearance for bridges.