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.

DistrhoPluginProM.hpp 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * DISTRHO ProM Plugin
  3. * Copyright (C) 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 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_PROM_HPP_INCLUDED
  17. #define DISTRHO_PLUGIN_PROM_HPP_INCLUDED
  18. #include "DistrhoPlugin.hpp"
  19. #include "extra/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* getLabel() const noexcept override
  33. {
  34. return "ProM";
  35. }
  36. const char* getDescription() const override
  37. {
  38. return "ProjectM visualizer.";
  39. }
  40. const char* getMaker() const noexcept override
  41. {
  42. return "DISTRHO";
  43. }
  44. const char* getHomePage() const override
  45. {
  46. return "https://github.com/DISTRHO/ProM";
  47. }
  48. const char* getLicense() const noexcept override
  49. {
  50. return "LGPL";
  51. }
  52. uint32_t getVersion() const noexcept override
  53. {
  54. return d_version(1, 0, 0);
  55. }
  56. int64_t getUniqueId() const noexcept override
  57. {
  58. return d_cconst('D', 'P', 'r', 'M');
  59. }
  60. // -------------------------------------------------------------------
  61. // Init
  62. void initParameter(uint32_t, Parameter&) override;
  63. // -------------------------------------------------------------------
  64. // Internal data
  65. float getParameterValue(uint32_t) const override;
  66. void setParameterValue(uint32_t, float) override;
  67. // -------------------------------------------------------------------
  68. // Process
  69. void run(const float** inputs, float** outputs, uint32_t frames) override;
  70. // -------------------------------------------------------------------
  71. private:
  72. Mutex fMutex;
  73. projectM* fPM;
  74. friend class DistrhoUIProM;
  75. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoPluginProM)
  76. };
  77. // -----------------------------------------------------------------------
  78. END_NAMESPACE_DISTRHO
  79. #endif // DISTRHO_PLUGIN_PROM_HPP_INCLUDED