DISTRHO Plugin Framework
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.

61 lines
1.1KB

  1. // Copyright Jean Pierre Cimalando 2018.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #include "PluginMain.h"
  6. #include <string.h>
  7. ExamplePlugin::ExamplePlugin()
  8. : Plugin(0, 0, 0)
  9. {
  10. }
  11. const char *ExamplePlugin::getLabel() const
  12. {
  13. return "Cairo DPF Example";
  14. }
  15. const char *ExamplePlugin::getMaker() const
  16. {
  17. return "Jean Pierre Cimalando";
  18. }
  19. const char *ExamplePlugin::getLicense() const
  20. {
  21. return "Boost Software License";
  22. }
  23. uint32_t ExamplePlugin::getVersion() const
  24. {
  25. return 0;
  26. }
  27. int64_t ExamplePlugin::getUniqueId() const
  28. {
  29. return 0;
  30. }
  31. void ExamplePlugin::initParameter(uint32_t index, Parameter &parameter)
  32. {
  33. }
  34. float ExamplePlugin::getParameterValue(uint32_t index) const
  35. {
  36. return 0;
  37. }
  38. void ExamplePlugin::setParameterValue(uint32_t index, float value)
  39. {
  40. }
  41. void ExamplePlugin::run(const float **inputs, float **outputs, uint32_t frames)
  42. {
  43. memcpy(outputs[0], inputs[0], frames * sizeof(float));
  44. }
  45. Plugin *DISTRHO::createPlugin()
  46. {
  47. return new ExamplePlugin;
  48. }