Jack2 1.9.10
|
00001 /* 00002 Copyright (C) 2009 Grame 00003 Copyright (C) 2011 Devin Anderson 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 00019 */ 00020 00021 #ifndef __JackWinMMEDriver__ 00022 #define __JackWinMMEDriver__ 00023 00024 #include "JackMidiDriver.h" 00025 #include "JackWinMMEInputPort.h" 00026 #include "JackWinMMEOutputPort.h" 00027 00028 namespace Jack { 00029 00030 class JackWinMMEDriver : public JackMidiDriver { 00031 00032 private: 00033 00034 JackWinMMEInputPort **input_ports; 00035 JackWinMMEOutputPort **output_ports; 00036 UINT period; 00037 00038 public: 00039 00040 JackWinMMEDriver(const char* name, const char* alias, 00041 JackLockedEngine* engine, JackSynchro* table); 00042 00043 ~JackWinMMEDriver(); 00044 00045 int 00046 Attach(); 00047 00048 int 00049 Close(); 00050 00051 int 00052 Open(bool capturing, bool playing, int num_inputs, int num_outputs, 00053 bool monitor, const char* capture_driver_name, 00054 const char* playback_driver_name, jack_nframes_t capture_latency, 00055 jack_nframes_t playback_latency); 00056 00057 int 00058 Read(); 00059 00060 int 00061 Start(); 00062 00063 int 00064 Stop(); 00065 00066 int 00067 Write(); 00068 00069 }; 00070 00071 } 00072 00073 #endif