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.

86 lines
2.9KB

  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-nekobi/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-nekobi/DistrhoArtworkNekobi.cpp"
  25. #include "distrho-nekobi/DistrhoPluginNekobi.cpp"
  26. #ifdef HAVE_DGL
  27. #include "distrho-nekobi/DistrhoUINekobi.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 nekobiDesc = {
  38. /* category */ NATIVE_PLUGIN_CATEGORY_SYNTH,
  39. #ifdef HAVE_DGL
  40. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  41. |NATIVE_PLUGIN_IS_SYNTH
  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. |NATIVE_PLUGIN_IS_SYNTH),
  48. #endif
  49. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_CONTROL_CHANGES
  50. |NATIVE_PLUGIN_SUPPORTS_ALL_SOUND_OFF),
  51. /* audioIns */ DISTRHO_PLUGIN_NUM_INPUTS,
  52. /* audioOuts */ DISTRHO_PLUGIN_NUM_OUTPUTS,
  53. /* midiIns */ 1,
  54. /* midiOuts */ 0,
  55. /* paramIns */ DistrhoPluginNekobi::paramCount,
  56. /* paramOuts */ 0,
  57. /* name */ DISTRHO_PLUGIN_NAME,
  58. /* label */ "nekobi",
  59. /* maker */ "falkTX, Sean Bolton and others",
  60. /* copyright */ "GPL v2+",
  61. PluginDescriptorFILL(PluginCarla)
  62. };
  63. END_NAMESPACE_DISTRHO
  64. // -----------------------------------------------------------------------
  65. CARLA_EXPORT
  66. void carla_register_native_plugin_distrho_nekobi();
  67. CARLA_EXPORT
  68. void carla_register_native_plugin_distrho_nekobi()
  69. {
  70. USE_NAMESPACE_DISTRHO
  71. carla_register_native_plugin(&nekobiDesc);
  72. }
  73. // -----------------------------------------------------------------------