Jack2
1.9.8
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
common
JackDummyDriver.h
1
/*
2
Copyright (C) 2001 Paul Davis
3
Copyright (C) 2004-2008 Grame
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 __JackDummyDriver__
22
#define __JackDummyDriver__
23
24
#include "JackTimedDriver.h"
25
26
namespace
Jack
27
{
28
33
class
JackDummyDriver
:
public
JackTimedDriver
34
{
35
36
public
:
37
38
JackDummyDriver
(
const
char
* name,
const
char
* alias,
JackLockedEngine
* engine,
JackSynchro
* table)
39
:
JackTimedDriver
(name, alias, engine, table)
40
{}
41
virtual
~
JackDummyDriver
()
42
{}
43
44
virtual
int
Process()
45
{
46
JackDriver::CycleTakeBeginTime();
47
48
if
(JackAudioDriver::Process() < 0) {
49
return
-1;
50
}
else
{
51
ProcessWait();
52
return
0;
53
}
54
}
55
56
};
57
58
}
// end of namespace
59
60
#endif
Generated by
1.8.3