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