Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
interface
rtmididevice.h
Go to the documentation of this file.
1
8
#ifndef RTMIDIDEVICE_H_
9
#define RTMIDIDEVICE_H_
10
11
#include "
interface/mididevice.h
"
12
13
class
RtMidiOut
;
14
class
RtMidiIn
;
15
16
#ifndef SWIG
17
void
rtMidiInCallback
(
double
deltatime, std::vector< unsigned char > *message,
void
*userData );
18
#endif
19
20
class
CARtMidiDevice
:
public
CAMidiDevice
{
21
public
:
22
CARtMidiDevice
();
23
~CARtMidiDevice
();
24
25
QMap<int, QString>
getOutputPorts
();
26
QMap<int, QString>
getInputPorts
();
27
28
bool
openOutputPort
(
int
port);
// return true on success, false otherwise
29
bool
openInputPort
(
int
port);
// return true on success, false otherwise
30
void
closeOutputPort
();
31
void
closeInputPort
();
32
void
send
(QVector<unsigned char> message,
int
offset=0);
33
34
private
:
35
RtMidiOut
*
_out
;
36
RtMidiIn
*
_in
;
37
bool
_outOpen
;
38
bool
_inOpen
;
39
};
40
41
#endif
/* RTMIDIDEVICE_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3