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. 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 modify
  7. it under the terms of version 2 of the GNU General Public License
  8. as published by the Free Software Foundation.
  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 General Public License (version 2 or later) for more details.
  13. You should have received a copy of the GNU General Public License (version 2)
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #ifndef LASHClient_h
  18. #define LASHClient_h
  19. #include <string>
  20. #include <pthread.h>
  21. #include <lash/lash.h>
  22. /** This class wraps up some functions for initialising and polling
  23. * the LASH daemon.*/
  24. class LASHClient
  25. {
  26. public:
  27. /**Enum to represent the LASH events that are currently handled*/
  28. enum Event {
  29. Save,
  30. Restore,
  31. Quit,
  32. NoEvent
  33. };
  34. /** Constructor
  35. * @param argc number of arguments
  36. * @param argv the text arguments*/
  37. LASHClient(int *argc, char ***argv);
  38. /**set the ALSA id
  39. * @param id new ALSA id*/
  40. void setalsaid(int id);
  41. /**Set the JACK name
  42. * @param name the new name*/
  43. void setjackname(const char *name);
  44. Event checkevents(std::string &filename);
  45. void confirmevent(Event event);
  46. private:
  47. lash_client_t *client;
  48. };
  49. #endif