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.

distrho-mverb.cpp 2.5KB

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