Query format (AU/VST/RTAS) inside PluginEditor?

Check this post:
This snippet from my PluginEditor code fills a string with the current version, format, and bit depth – seems to work well on Windows and OSX.

String displayString("Version "); displayString += JucePlugin_VersionString; displayString += " "; switch (getProcessor()->wrapperType) { case AudioProcessor::wrapperType_VST: displayString += "VST"; break; case AudioProcessor::wrapperType_VST3: displayString += "VST3"; break; case AudioProcessor::wrapperType_AudioUnit: displayString += "AU"; break; case AudioProcessor::wrapperType_RTAS: displayString += "RTAS"; break; case AudioProcessor::wrapperType_AAX: displayString += "AAX"; break; default: displayString += "Unknown"; break; } #if defined(__LP64__) || defined(_WIN64) displayString += String(" (64)"); #else displayString += String(" (32)"); #endif #ifdef _DEBUG displayString += String(" DEBUG"); #endif