Merge branch 'master' into no-self-connect
[jack2.git] / common / JackDummyDriver.h
blobcfd6b47443b83ac349210db2c2cae68806d0888f
1 /*
2 Copyright (C) 2001 Paul Davis
3 Copyright (C) 2004-2008 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"
26 namespace Jack
29 /*!
30 \brief The dummy driver.
33 class JackDummyDriver : public JackAudioDriver
35 private:
37 long fWaitTime;
39 public:
41 JackDummyDriver(const char* name, const char* alias, JackLockedEngine* engine, JackSynchro* table, unsigned long wait_time)
42 : JackAudioDriver(name, alias, engine, table), fWaitTime(wait_time)
44 virtual ~JackDummyDriver()
47 int Open(jack_nframes_t buffersize,
48 jack_nframes_t samplerate,
49 bool capturing,
50 bool playing,
51 int chan_in,
52 int chan_out,
53 bool monitor,
54 const char* capture_driver_name,
55 const char* playback_driver_name,
56 jack_nframes_t capture_latency,
57 jack_nframes_t playback_latency);
59 int Process();
61 // BufferSize can be changed
62 bool IsFixedBufferSize()
64 return false;
67 int SetBufferSize(jack_nframes_t buffer_size);
71 } // end of namespace
73 #endif