The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.3KB

  1. #ifndef _REAPER_VST3_INTERFACES_H_
  2. #define _REAPER_VST3_INTERFACES_H_
  3. class IReaperHostApplication : public FUnknown // available from IHostApplication in REAPER v5.02+
  4. {
  5. public:
  6. // Gets a REAPER Extension API function by name, returns NULL is failed
  7. virtual void* PLUGIN_API getReaperApi(CStringA funcname) = 0;
  8. virtual void* PLUGIN_API getReaperParent(uint32 w) = 0; // get parent track(=1), take(=2), project(=3), fxdsp(=4), trackchan(=5)
  9. // Multi-purpose function, returns NULL if unsupported
  10. virtual void* PLUGIN_API reaperExtended(uint32 call, void *parm1, void *parm2, void *parm3) = 0;
  11. static const FUID iid;
  12. };
  13. DECLARE_CLASS_IID (IReaperHostApplication, 0x79655E36, 0x77EE4267, 0xA573FEF7, 0x4912C27C)
  14. class IReaperUIEmbedInterface : public FUnknown // supported by REAPER v6.24+, queried from plug-in IController
  15. {
  16. public:
  17. // note: VST2 uses CanDo "hasCockosEmbeddedUI"==0xbeef0000, then opcode=effVendorSpecific, index=effEditDraw, opt=(float)msg, value=parm2, ptr=parm3
  18. // see reaper_plugin_fx_embed.h
  19. virtual Steinberg::TPtrInt embed_message(int msg, Steinberg::TPtrInt parm2, Steinberg::TPtrInt parm3) = 0;
  20. static const FUID iid;
  21. };
  22. DECLARE_CLASS_IID (IReaperUIEmbedInterface, 0x049bf9e7, 0xbc74ead0, 0xc4101e86, 0x7f725981)
  23. #endif