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.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2013-2022 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. CarlaUILauncher* createUILauncher(uintptr_t winId, const NativePluginDescriptor* d, NativePluginHandle h);
  30. void idleUILauncher(CarlaUILauncher* ui);
  31. void destoryUILauncher(CarlaUILauncher* ui);
  32. const AEffect* VSTPluginMainInit(AEffect* effect);
  33. intptr_t VSTAudioMaster(AEffect*, int32_t, int32_t, intptr_t, void*, float);
  34. bool isUsingUILauncher();
  35. intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t index, intptr_t value, void* ptr, float opt);
  36. float vst_getParameterCallback(AEffect* effect, int32_t index);
  37. void vst_setParameterCallback(AEffect* effect, int32_t index, float value);
  38. void vst_processCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames);
  39. void vst_processReplacingCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames);
  40. #endif // CARLA_VST_HPP_INCLUDED