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.

80 lines
2.5KB

  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-pingpongpan/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-pingpongpan/DistrhoArtworkPingPongPan.cpp"
  25. #include "distrho-pingpongpan/DistrhoPluginPingPongPan.cpp"
  26. #ifdef HAVE_DGL
  27. #include "distrho-pingpongpan/DistrhoUIPingPongPan.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 pingpongpanDesc = {
  38. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  39. #ifdef HAVE_DGL
  40. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE|NATIVE_PLUGIN_HAS_UI|NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD|NATIVE_PLUGIN_USES_PARENT_ID),
  41. #else
  42. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  43. #endif
  44. /* supports */ static_cast<NativePluginSupports>(0x0),
  45. /* audioIns */ DISTRHO_PLUGIN_NUM_INPUTS,
  46. /* audioOuts */ DISTRHO_PLUGIN_NUM_OUTPUTS,
  47. /* midiIns */ 0,
  48. /* midiOuts */ 0,
  49. /* paramIns */ DistrhoPluginPingPongPan::paramCount,
  50. /* paramOuts */ 0,
  51. /* name */ DISTRHO_PLUGIN_NAME,
  52. /* label */ "pingpongpan",
  53. /* maker */ "falkTX, Michael Gruhn",
  54. /* copyright */ "LGPL",
  55. PluginDescriptorFILL(PluginCarla)
  56. };
  57. END_NAMESPACE_DISTRHO
  58. // -----------------------------------------------------------------------
  59. CARLA_EXPORT
  60. void carla_register_native_plugin_distrho_pingpongpan();
  61. CARLA_EXPORT
  62. void carla_register_native_plugin_distrho_pingpongpan()
  63. {
  64. USE_NAMESPACE_DISTRHO
  65. carla_register_native_plugin(&pingpongpanDesc);
  66. }
  67. // -----------------------------------------------------------------------