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.

84 lines
2.6KB

  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 "CarlaDefines.h"
  19. #include "distrho-mverb/DistrhoPluginInfo.h"
  20. #if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL)
  21. # undef DISTRHO_PLUGIN_HAS_UI
  22. # define DISTRHO_PLUGIN_HAS_UI 0
  23. #endif
  24. // Plugin Code
  25. #include "distrho-mverb/DistrhoArtworkMVerb.cpp"
  26. #include "distrho-mverb/DistrhoPluginMVerb.cpp"
  27. #if DISTRHO_PLUGIN_HAS_UI
  28. #include "distrho-mverb/DistrhoUIMVerb.cpp"
  29. #endif
  30. // DISTRHO Code
  31. #define DISTRHO_PLUGIN_TARGET_CARLA
  32. #include "DistrhoPluginMain.cpp"
  33. #if DISTRHO_PLUGIN_HAS_UI
  34. #include "DistrhoUIMain.cpp"
  35. #endif
  36. START_NAMESPACE_DISTRHO
  37. // -----------------------------------------------------------------------
  38. static const NativePluginDescriptor _mverbDesc = {
  39. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  40. #if DISTRHO_PLUGIN_HAS_UI
  41. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  42. |NATIVE_PLUGIN_HAS_UI
  43. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  44. |NATIVE_PLUGIN_USES_PARENT_ID),
  45. #else
  46. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  47. #endif
  48. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  49. /* audioIns */ DISTRHO_PLUGIN_NUM_INPUTS,
  50. /* audioOuts */ DISTRHO_PLUGIN_NUM_OUTPUTS,
  51. /* midiIns */ 0,
  52. /* midiOuts */ 0,
  53. /* paramIns */ MVerb<float>::NUM_PARAMS,
  54. /* paramOuts */ 0,
  55. /* name */ DISTRHO_PLUGIN_NAME,
  56. /* label */ "mverb",
  57. /* maker */ "falkTX, Martin Eastwood",
  58. /* copyright */ "GPL v3+",
  59. PluginDescriptorFILL(PluginCarla)
  60. };
  61. END_NAMESPACE_DISTRHO
  62. // -----------------------------------------------------------------------
  63. CARLA_EXPORT
  64. void carla_register_native_plugin_distrho_mverb();
  65. CARLA_EXPORT
  66. void carla_register_native_plugin_distrho_mverb()
  67. {
  68. USE_NAMESPACE_DISTRHO
  69. carla_register_native_plugin(&_mverbDesc);
  70. }
  71. // -----------------------------------------------------------------------