Jack2
1.9.8
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
common
JackMidiDriver.h
1
/*
2
Copyright (C) 2009 Grame
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18
*/
19
20
#ifndef __JackMidiDriver__
21
#define __JackMidiDriver__
22
23
#include "JackDriver.h"
24
#include "JackMidiPort.h"
25
#include "JackLockedEngine.h"
26
#include "
ringbuffer.h
"
27
28
namespace
Jack
29
{
30
35
class
SERVER_EXPORT
JackMidiDriver
:
public
JackDriver
36
{
37
38
protected
:
39
40
JackMidiBuffer
* GetInputBuffer(
int
port_index);
41
JackMidiBuffer
* GetOutputBuffer(
int
port_index);
42
43
virtual
int
ProcessReadSync();
44
virtual
int
ProcessWriteSync();
45
46
virtual
int
ProcessReadAsync();
47
virtual
int
ProcessWriteAsync();
48
49
virtual
void
UpdateLatencies();
50
51
public
:
52
53
JackMidiDriver
(
const
char
* name,
const
char
* alias,
JackLockedEngine
* engine,
JackSynchro
* table);
54
virtual
~
JackMidiDriver
();
55
56
virtual
int
Open(
bool
capturing,
57
bool
playing,
58
int
inchannels,
59
int
outchannels,
60
bool
monitor,
61
const
char
* capture_driver_name,
62
const
char
* playback_driver_name,
63
jack_nframes_t capture_latency,
64
jack_nframes_t playback_latency);
65
66
virtual
int
SetBufferSize(jack_nframes_t buffer_size);
67
68
virtual
int
Attach();
69
virtual
int
Detach();
70
71
};
72
73
}
// end of namespace
74
75
#endif
Generated by
1.8.3