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.

74 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. UINT period;
  27. public:
  28. JackWinMMEDriver(const char* name, const char* alias,
  29. JackLockedEngine* engine, JackSynchro* table);
  30. ~JackWinMMEDriver();
  31. int
  32. Attach();
  33. int
  34. Close();
  35. int
  36. Open(bool capturing, bool playing, int num_inputs, int num_outputs,
  37. bool monitor, const char* capture_driver_name,
  38. const char* playback_driver_name, jack_nframes_t capture_latency,
  39. jack_nframes_t playback_latency);
  40. int
  41. Read();
  42. int
  43. Start();
  44. int
  45. Stop();
  46. int
  47. Write();
  48. };
  49. }
  50. #endif