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.

70 lines
2.1KB

  1. /*
  2. * DISTRHO Plugin Toolkit (DPT)
  3. * Copyright (C) 2012-2013 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any purpose with
  6. * or without fee is hereby granted, provided that the above copyright notice and this
  7. * permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
  10. * TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
  11. * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  12. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  13. * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef DISTRHO_UI_EXTERNAL_HPP_INCLUDED
  17. #define DISTRHO_UI_EXTERNAL_HPP_INCLUDED
  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. // -------------------------------------------------------------------
  30. // Information (External)
  31. virtual const char* d_getExternalFilename() const = 0;
  32. private:
  33. // -------------------------------------------------------------------
  34. // Implement stuff not needed for external UIs
  35. unsigned int d_getWidth() const noexcept override { return 0; }
  36. unsigned int d_getHeight() const noexcept override { return 0; }
  37. void d_parameterChanged(uint32_t, float) override {}
  38. #if DISTRHO_PLUGIN_WANT_PROGRAMS
  39. void d_programChanged(uint32_t) override {}
  40. #endif
  41. #if DISTRHO_PLUGIN_WANT_STATE
  42. void d_stateChanged(const char*, const char*) override {}
  43. #endif
  44. #if DISTRHO_PLUGIN_IS_SYNTH
  45. void d_noteReceived(bool, uint8_t, uint8_t, uint8_t) override {}
  46. #endif
  47. void d_uiIdle() override {}
  48. friend class UIInternal;
  49. };
  50. // -----------------------------------------------------------------------
  51. END_NAMESPACE_DISTRHO
  52. #endif // DISTRHO_UI_EXTERNAL_HPP_INCLUDED