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.

LASHClient.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. namespace zyncarla {
  17. /** This class wraps up some functions for initialising and polling
  18. * the LASH daemon.*/
  19. class LASHClient
  20. {
  21. public:
  22. /**Enum to represent the LASH events that are currently handled*/
  23. enum Event {
  24. Save,
  25. Restore,
  26. Quit,
  27. NoEvent
  28. };
  29. /** Constructor
  30. * @param argc number of arguments
  31. * @param argv the text arguments*/
  32. LASHClient(int *argc, char ***argv);
  33. /**set the ALSA id
  34. * @param id new ALSA id*/
  35. void setalsaid(int id);
  36. /**Set the JACK name
  37. * @param name the new name*/
  38. void setjackname(const char *name);
  39. Event checkevents(std::string &filename);
  40. void confirmevent(Event event);
  41. private:
  42. lash_client_t *client;
  43. };
  44. }
  45. #endif