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.

97 lines
2.5KB

  1. /*
  2. * DISTRHO ProM Plugin
  3. * Copyright (C) 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 Lesser General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * For a full copy of the license see the LICENSE file.
  15. */
  16. #ifndef DISTRHO_PLUGIN_3BANDEQ_HPP_INCLUDED
  17. #define DISTRHO_PLUGIN_3BANDEQ_HPP_INCLUDED
  18. #include "DistrhoPlugin.hpp"
  19. #include "extra/d_mutex.hpp"
  20. class projectM;
  21. class DistrhoUIProM;
  22. START_NAMESPACE_DISTRHO
  23. // -----------------------------------------------------------------------
  24. class DistrhoPluginProM : public Plugin
  25. {
  26. public:
  27. DistrhoPluginProM();
  28. ~DistrhoPluginProM() override;
  29. protected:
  30. // -------------------------------------------------------------------
  31. // Information
  32. const char* d_getLabel() const noexcept override
  33. {
  34. return "ProM";
  35. }
  36. const char* d_getMaker() const noexcept override
  37. {
  38. return "DISTRHO";
  39. }
  40. const char* d_getLicense() const noexcept override
  41. {
  42. return "LGPL";
  43. }
  44. uint32_t d_getVersion() const noexcept override
  45. {
  46. return 0x1000;
  47. }
  48. long d_getUniqueId() const noexcept override
  49. {
  50. return d_cconst('D', 'P', 'r', 'M');
  51. }
  52. // -------------------------------------------------------------------
  53. // Init
  54. void d_initParameter(uint32_t, Parameter&) override;
  55. // -------------------------------------------------------------------
  56. // Internal data
  57. float d_getParameterValue(uint32_t) const override;
  58. void d_setParameterValue(uint32_t, float) override;
  59. // -------------------------------------------------------------------
  60. // Process
  61. void d_run(const float** inputs, float** outputs, uint32_t frames) override;
  62. // -------------------------------------------------------------------
  63. private:
  64. Mutex fMutex;
  65. projectM* fPM;
  66. friend class DistrhoUIProM;
  67. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoPluginProM)
  68. };
  69. // -----------------------------------------------------------------------
  70. END_NAMESPACE_DISTRHO
  71. #endif // DISTRHO_PLUGIN_3BANDEQ_HPP_INCLUDED