Audio plugin host https://kx.studio/carla
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.

carla-vst.hpp 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2013-2023 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #ifndef CARLA_VST_HPP_INCLUDED
  18. #define CARLA_VST_HPP_INCLUDED
  19. #include "CarlaDefines.h"
  20. #include "CarlaNative.h"
  21. #include "vestige/vestige.h"
  22. #include "ui_launcher_res.hpp"
  23. struct CarlaUILauncher;
  24. class NativePlugin;
  25. struct VstObject {
  26. void* audioMaster;
  27. NativePlugin* plugin;
  28. };
  29. struct VstRect {
  30. int16_t top, left, bottom, right;
  31. };
  32. CarlaUILauncher* createUILauncher(uintptr_t winId, const NativePluginDescriptor* d, NativePluginHandle h);
  33. void getUILauncherSize(CarlaUILauncher* ui, VstRect* rect);
  34. void idleUILauncher(CarlaUILauncher* ui);
  35. void destoryUILauncher(CarlaUILauncher* ui);
  36. const AEffect* VSTPluginMainInit(AEffect* effect);
  37. intptr_t VSTAudioMaster(AEffect*, int32_t, int32_t, intptr_t, void*, float);
  38. bool isUsingUILauncher();
  39. intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t index, intptr_t value, void* ptr, float opt);
  40. float vst_getParameterCallback(AEffect* effect, int32_t index);
  41. void vst_setParameterCallback(AEffect* effect, int32_t index, float value);
  42. void vst_processCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames);
  43. void vst_processReplacingCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames);
  44. #endif // CARLA_VST_HPP_INCLUDED