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.

85 lines
2.7KB

  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012-2015 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. // config fix
  18. #include "distrho-vectorjuice/DistrhoPluginInfo.h"
  19. #if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL)
  20. # undef DISTRHO_PLUGIN_HAS_UI
  21. # define DISTRHO_PLUGIN_HAS_UI 0
  22. #endif
  23. // Plugin Code
  24. #include "distrho-vectorjuice/VectorJuicePlugin.cpp"
  25. #ifdef HAVE_DGL
  26. #include "distrho-vectorjuice/VectorJuiceArtwork.cpp"
  27. #include "distrho-vectorjuice/VectorJuiceUI.cpp"
  28. #endif
  29. // DISTRHO Code
  30. #define DISTRHO_PLUGIN_TARGET_CARLA
  31. #include "DistrhoPluginMain.cpp"
  32. #ifdef HAVE_DGL
  33. #include "DistrhoUIMain.cpp"
  34. #endif
  35. START_NAMESPACE_DISTRHO
  36. // -----------------------------------------------------------------------
  37. static const NativePluginDescriptor vectorjuiceDesc = {
  38. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  39. #ifdef HAVE_DGL
  40. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  41. |NATIVE_PLUGIN_HAS_UI
  42. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  43. |NATIVE_PLUGIN_USES_PARENT_ID
  44. |NATIVE_PLUGIN_USES_TIME),
  45. #else
  46. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  47. |NATIVE_PLUGIN_USES_TIME),
  48. #endif
  49. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  50. /* audioIns */ DISTRHO_PLUGIN_NUM_INPUTS,
  51. /* audioOuts */ DISTRHO_PLUGIN_NUM_OUTPUTS,
  52. /* midiIns */ 0,
  53. /* midiOuts */ 0,
  54. /* paramIns */ 13,
  55. /* paramOuts */ 4,
  56. /* name */ DISTRHO_PLUGIN_NAME,
  57. /* label */ "vectorjuice",
  58. /* maker */ "Andre Sklenar",
  59. /* copyright */ "GPL v2+",
  60. PluginDescriptorFILL(PluginCarla)
  61. };
  62. END_NAMESPACE_DISTRHO
  63. // -----------------------------------------------------------------------
  64. CARLA_EXPORT
  65. void carla_register_native_plugin_distrho_vectorjuice();
  66. CARLA_EXPORT
  67. void carla_register_native_plugin_distrho_vectorjuice()
  68. {
  69. USE_NAMESPACE_DISTRHO
  70. carla_register_native_plugin(&vectorjuiceDesc);
  71. }
  72. // -----------------------------------------------------------------------