jack2 codebase
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.

73 lines
1.7KB

  1. /*
  2. Copyright (C) 2009 Grame
  3. Copyright (C) 2011 Devin Anderson
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #ifndef __JackWinMMEDriver__
  17. #define __JackWinMMEDriver__
  18. #include "JackMidiDriver.h"
  19. #include "JackWinMMEInputPort.h"
  20. #include "JackWinMMEOutputPort.h"
  21. namespace Jack {
  22. class JackWinMMEDriver : public JackMidiDriver {
  23. private:
  24. JackWinMMEInputPort **input_ports;
  25. JackWinMMEOutputPort **output_ports;
  26. public:
  27. JackWinMMEDriver(const char* name, const char* alias,
  28. JackLockedEngine* engine, JackSynchro* table);
  29. ~JackWinMMEDriver();
  30. int
  31. Attach();
  32. int
  33. Close();
  34. int
  35. Open(bool capturing, bool playing, int num_inputs, int num_outputs,
  36. bool monitor, const char* capture_driver_name,
  37. const char* playback_driver_name, jack_nframes_t capture_latency,
  38. jack_nframes_t playback_latency);
  39. int
  40. Read();
  41. int
  42. Start();
  43. int
  44. Stop();
  45. int
  46. Write();
  47. };
  48. }
  49. #endif