Cleanup
[jack2.git] / common / JackDummyDriver.h
blob52d28f36669a4bbd1686307537ef42fc6df743d9
1 /*
2 Copyright (C) 2001 Paul Davis
3 Copyright (C) 2004-2006 Grame
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 __JackDummyDriver__
22 #define __JackDummyDriver__
24 #include "JackAudioDriver.h"
25 #include "JackThreadedDriver.h"
26 #include "JackTime.h"
28 namespace Jack
31 /*!
32 \brief The dummy driver.
35 class JackDummyDriver : public JackAudioDriver
37 private:
39 long fWaitTime;
41 public:
43 JackDummyDriver(const char* name, JackEngine* engine, JackSynchro** table, unsigned long wait_time)
44 : JackAudioDriver(name, engine, table), fWaitTime(wait_time)
46 virtual ~JackDummyDriver()
49 int Open(jack_nframes_t frames_per_cycle,
50 jack_nframes_t rate,
51 int capturing,
52 int playing,
53 int chan_in,
54 int chan_out,
55 bool monitor,
56 const char* capture_driver_name,
57 const char* playback_driver_name,
58 jack_nframes_t capture_latency,
59 jack_nframes_t playback_latency);
61 int Process();
62 int SetBufferSize(jack_nframes_t buffer_size);
63 void PrintState();
66 } // end of namespace
68 #endif