Update changelog
[jack2.git] / windows / winmme / JackWinMMEDriver.h
blob3bcdb7e64cde1217853a90dbe2f2e55531b434ae
1 /*
2 Copyright (C) 2009 Grame
3 Copyright (C) 2011 Devin Anderson
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.
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.
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.
21 #ifndef __JackWinMMEDriver__
22 #define __JackWinMMEDriver__
24 #include "JackMidiDriver.h"
25 #include "JackWinMMEInputPort.h"
26 #include "JackWinMMEOutputPort.h"
28 namespace Jack {
30 class JackWinMMEDriver : public JackMidiDriver {
32 private:
34 JackWinMMEInputPort **input_ports;
35 JackWinMMEOutputPort **output_ports;
36 UINT period;
38 public:
40 JackWinMMEDriver(const char* name, const char* alias,
41 JackLockedEngine* engine, JackSynchro* table);
43 ~JackWinMMEDriver();
45 int
46 Attach();
48 int
49 Close();
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);
57 int
58 Read();
60 int
61 Start();
63 int
64 Stop();
66 int
67 Write();
73 #endif