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.

55 lines
1.3KB

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. LASHClient.h - LASH support
  4. Copyright (C) 2006-2009 Lars Luthman
  5. Author: Lars Luthman
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10. */
  11. #ifndef LASHClient_h
  12. #define LASHClient_h
  13. #include <string>
  14. #include <pthread.h>
  15. #include <lash/lash.h>
  16. /** This class wraps up some functions for initialising and polling
  17. * the LASH daemon.*/
  18. class LASHClient
  19. {
  20. public:
  21. /**Enum to represent the LASH events that are currently handled*/
  22. enum Event {
  23. Save,
  24. Restore,
  25. Quit,
  26. NoEvent
  27. };
  28. /** Constructor
  29. * @param argc number of arguments
  30. * @param argv the text arguments*/
  31. LASHClient(int *argc, char ***argv);
  32. /**set the ALSA id
  33. * @param id new ALSA id*/
  34. void setalsaid(int id);
  35. /**Set the JACK name
  36. * @param name the new name*/
  37. void setjackname(const char *name);
  38. Event checkevents(std::string &filename);
  39. void confirmevent(Event event);
  40. private:
  41. lash_client_t *client;
  42. };
  43. #endif