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-3bandsplitter.cpp 2.7KB

9 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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-3bandsplitter/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-3bandsplitter/DistrhoArtwork3BandSplitter.cpp"
  25. #include "distrho-3bandsplitter/DistrhoPlugin3BandSplitter.cpp"
  26. #ifdef HAVE_DGL
  27. #include "distrho-3bandsplitter/DistrhoUI3BandSplitter.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 _3bandsplitterDesc = {
  38. /* category */ NATIVE_PLUGIN_CATEGORY_EQ,
  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. #else
  45. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  46. #endif
  47. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  48. /* audioIns */ DISTRHO_PLUGIN_NUM_INPUTS,
  49. /* audioOuts */ DISTRHO_PLUGIN_NUM_OUTPUTS,
  50. /* midiIns */ 0,
  51. /* midiOuts */ 0,
  52. /* paramIns */ DistrhoPlugin3BandSplitter::paramCount,
  53. /* paramOuts */ 0,
  54. /* name */ DISTRHO_PLUGIN_NAME,
  55. /* label */ "3bandsplitter",
  56. /* maker */ "falkTX, Michael Gruhn",
  57. /* copyright */ "LGPL",
  58. PluginDescriptorFILL(PluginCarla)
  59. };
  60. END_NAMESPACE_DISTRHO
  61. // -----------------------------------------------------------------------
  62. CARLA_EXPORT
  63. void carla_register_native_plugin_distrho_3bandsplitter();
  64. CARLA_EXPORT
  65. void carla_register_native_plugin_distrho_3bandsplitter()
  66. {
  67. USE_NAMESPACE_DISTRHO
  68. carla_register_native_plugin(&_3bandsplitterDesc);
  69. }
  70. // -----------------------------------------------------------------------