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.

50 lines
1.8KB

  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2013-2019 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. #include "CarlaDefines.h"
  18. #include "CarlaNative.h"
  19. #include "vestige/vestige.h"
  20. #ifndef HAVE_X11
  21. # include "ui_launcher_res.hpp"
  22. struct CarlaUILauncher;
  23. #endif
  24. class NativePlugin;
  25. struct VstObject {
  26. void* audioMaster;
  27. NativePlugin* plugin;
  28. };
  29. #ifndef HAVE_X11
  30. CarlaUILauncher* createUILauncher(const intptr_t winId,
  31. const NativePluginDescriptor* const d,
  32. const NativePluginHandle h);
  33. void idleUILauncher(CarlaUILauncher* const ui);
  34. void destoryUILauncher(CarlaUILauncher* const ui);
  35. #endif
  36. const AEffect* VSTPluginMainInit(AEffect* const effect);
  37. intptr_t VSTAudioMaster(AEffect*, int32_t, int32_t, intptr_t, void*, float);
  38. intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t index, intptr_t value, void* ptr, float opt);
  39. float vst_getParameterCallback(AEffect* effect, int32_t index);
  40. void vst_setParameterCallback(AEffect* effect, int32_t index, float value);
  41. void vst_processCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames);
  42. void vst_processReplacingCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames);