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.

64 lines
1.7KB

  1. /*
  2. * DISTRHO Plugin Toolkit (DPT)
  3. * Copyright (C) 2012-2013 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 LGPL.txt file
  15. */
  16. #ifndef __DISTRHO_UI_EXTERNAL_HPP__
  17. #define __DISTRHO_UI_EXTERNAL_HPP__
  18. #include "DistrhoUI.hpp"
  19. #include <lo/lo.h>
  20. START_NAMESPACE_DISTRHO
  21. // -------------------------------------------------
  22. // External UI
  23. class ExternalUI : public UI
  24. {
  25. public:
  26. ExternalUI();
  27. virtual ~ExternalUI() override;
  28. protected:
  29. const char* d_externalFilename() const = 0;
  30. private:
  31. friend class UIInternal;
  32. // ---------------------------------------------
  33. // not needed for external UIs
  34. unsigned int d_width() const override { return 0; }
  35. unsigned int d_height() const override { return 0; }
  36. void d_parameterChanged(uint32_t, float) override {}
  37. #if DISTRHO_PLUGIN_WANT_PROGRAMS
  38. void d_programChanged(uint32_t) override {}
  39. #endif
  40. #if DISTRHO_PLUGIN_WANT_STATE
  41. void d_stateChanged(const char*, const char*) override {}
  42. #endif
  43. #if DISTRHO_PLUGIN_IS_SYNTH
  44. void d_noteReceived(bool, uint8_t, uint8_t, uint8_t) override {}
  45. #endif
  46. void d_uiIdle() override {}
  47. };
  48. // -------------------------------------------------
  49. END_NAMESPACE_DISTRHO
  50. #endif // __DISTRHO_UI_EXTERNAL_HPP__