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.

44 lines
1.7KB

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