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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #include "CarlaJuceUtils.hpp"
  24. // Plugin Code
  25. #include "distrho-3bandsplitter/DistrhoArtwork3BandSplitter.cpp"
  26. #include "distrho-3bandsplitter/DistrhoPlugin3BandSplitter.cpp"
  27. #ifdef HAVE_DGL
  28. #include "distrho-3bandsplitter/DistrhoUI3BandSplitter.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 _3bandsplitterDesc = {
  39. /* category */ NATIVE_PLUGIN_CATEGORY_EQ,
  40. #ifdef HAVE_DGL
  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 */ DistrhoPlugin3BandSplitter::paramCount,
  54. /* paramOuts */ 0,
  55. /* name */ DISTRHO_PLUGIN_NAME,
  56. /* label */ "3bandsplitter",
  57. /* maker */ "falkTX, Michael Gruhn",
  58. /* copyright */ "LGPL",
  59. PluginDescriptorFILL(PluginCarla)
  60. };
  61. END_NAMESPACE_DISTRHO
  62. // -----------------------------------------------------------------------
  63. CARLA_EXPORT
  64. void carla_register_native_plugin_distrho_3bandsplitter();
  65. CARLA_EXPORT
  66. void carla_register_native_plugin_distrho_3bandsplitter()
  67. {
  68. USE_NAMESPACE_DISTRHO
  69. carla_register_native_plugin(&_3bandsplitterDesc);
  70. }
  71. // -----------------------------------------------------------------------