Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
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:
37  bool _outOpen;
38  bool _inOpen;
39 };
40 
41 #endif /* RTMIDIDEVICE_H_ */