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.

99 lines
2.8KB

  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012-2014 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. #include "CarlaNative.h"
  18. // -----------------------------------------------------------------------
  19. // Plugin Code
  20. #include "nekofilter/nekofilter.c"
  21. #include "nekofilter/filter.c"
  22. #include "nekofilter/log.c"
  23. // -----------------------------------------------------------------------
  24. static const NativePluginDescriptor nekofilterDesc = {
  25. .category = NATIVE_PLUGIN_CATEGORY_FILTER,
  26. #ifdef WANT_UI
  27. .hints = NATIVE_PLUGIN_IS_RTSAFE|NATIVE_PLUGIN_HAS_UI,
  28. #else
  29. .hints = NATIVE_PLUGIN_IS_RTSAFE,
  30. #endif
  31. .supports = 0x0,
  32. .audioIns = 1,
  33. .audioOuts = 1,
  34. .midiIns = 0,
  35. .midiOuts = 0,
  36. .paramIns = GLOBAL_PARAMETERS_COUNT + BAND_PARAMETERS_COUNT*BANDS_COUNT,
  37. .paramOuts = 0,
  38. .name = "NekoFilter",
  39. .label = "nekofilter",
  40. .maker = "falkTX, Nedko, Fons Adriaensen",
  41. .copyright = "GNU GPL v2+",
  42. .instantiate = nekofilter_instantiate,
  43. .cleanup = nekofilter_cleanup,
  44. .get_parameter_count = nekofilter_get_parameter_count,
  45. .get_parameter_info = nekofilter_get_parameter_info,
  46. .get_parameter_value = nekofilter_get_parameter_value,
  47. .get_parameter_text = NULL,
  48. .get_midi_program_count = NULL,
  49. .get_midi_program_info = NULL,
  50. .set_parameter_value = nekofilter_set_parameter_value,
  51. .set_midi_program = NULL,
  52. .set_custom_data = NULL,
  53. #ifdef WANT_UI
  54. .ui_show = nekofilter_ui_show,
  55. .ui_idle = nekofilter_ui_idle,
  56. .ui_set_parameter_value = nekofilter_ui_set_parameter_value,
  57. .ui_set_midi_program = NULL,
  58. .ui_set_custom_data = NULL,
  59. #else
  60. .ui_show = NULL,
  61. .ui_idle = NULL,
  62. .ui_set_parameter_value = NULL,
  63. .ui_set_midi_program = NULL,
  64. .ui_set_custom_data = NULL,
  65. #endif
  66. .activate = NULL,
  67. .deactivate = NULL,
  68. .process = nekofilter_process,
  69. .get_state = NULL,
  70. .set_state = NULL,
  71. .dispatcher = NULL
  72. };
  73. // -----------------------------------------------------------------------
  74. void carla_register_native_plugin_nekofilter(void);
  75. void carla_register_native_plugin_nekofilter(void)
  76. {
  77. carla_register_native_plugin(&nekofilterDesc);
  78. }
  79. // -----------------------------------------------------------------------