Collection of tools useful for audio production
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.

95 lines
2.6KB

  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * 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 COPYING file
  16. */
  17. #include "carla_native.hpp"
  18. // Set plugin data
  19. #include "3bandeq/DistrhoPluginInfo.h"
  20. /// Set namespace for this plugin
  21. #define DISTRHO_NAMESPACE DISTRHO_3BEQ
  22. // Include Plugin code
  23. #include "3bandeq/DistrhoPlugin3BandEQ.h"
  24. #include "3bandeq/DistrhoUI3BandEQ.h"
  25. // Include DISTRHO code
  26. #include "DistrhoPluginCarla.cpp"
  27. START_NAMESPACE_DISTRHO
  28. // -----------------------------------------------------------------------
  29. //class CarlaDistrhoPlugin : public PluginDescriptorClass
  30. //{
  31. //public:
  32. // CarlaDistrhoPlugin(const HostDescriptor* host)
  33. // : PluginDescriptorClass(host)
  34. // {
  35. // }
  36. // ~CarlaDistrhoPlugin()
  37. // {
  38. // }
  39. //protected:
  40. // // -------------------------------------------------------------------
  41. // // Plugin process calls
  42. // // -------------------------------------------------------------------
  43. //public:
  44. // static PluginHandle _instantiate(struct _PluginDescriptor*, HostDescriptor* host)
  45. // {
  46. // return new CarlaDistrhoPlugin(host);
  47. // }
  48. // static void _cleanup(PluginHandle handle)
  49. // {
  50. // delete (CarlaDistrhoPlugin*)handle;
  51. // }
  52. //};
  53. // -----------------------------------------------------------------------
  54. static PluginDescriptor tBandEqDesc = {
  55. /* category */ PLUGIN_CATEGORY_EQ,
  56. /* hints */ 0x0,
  57. /* audioIns */ DISTRHO_PLUGIN_NUM_INPUTS,
  58. /* audioOuts */ DISTRHO_PLUGIN_NUM_OUTPUTS,
  59. /* midiIns */ 0,
  60. /* midiOuts */ 0,
  61. /* paramIns */ DistrhoPlugin3BandEQ::paramCount,
  62. /* paramOuts */ 0,
  63. /* name */ DISTRHO_PLUGIN_NAME,
  64. /* label */ "3BandEQ",
  65. /* maker */ "falkTX",
  66. /* copyright */ "LGPL",
  67. PluginDescriptorFILL(CarlaDistrhoPlugin)
  68. };
  69. END_NAMESPACE_DISTRHO
  70. // -----------------------------------------------------------------------
  71. void carla_register_native_plugin_3BandEQ()
  72. {
  73. USE_NAMESPACE_DISTRHO
  74. carla_register_native_plugin(&tBandEqDesc);
  75. }
  76. // -----------------------------------------------------------------------