CFugue
MidiDevice.h
1 /*
2  This is part of CFugue, a C++ Runtime for MIDI Score Programming
3  Copyright (C) 2009 Gopalakrishna Palem
4 
5  For links to further information, or to contact the author,
6  see <http://cfugue.sourceforge.net/>.
7 
8  $LastChangedDate: 2013-12-18 10:59:57 +0530 (Wed, 18 Dec 2013) $
9  $Rev: 197 $
10  $LastChangedBy: krishnapg $
11 */
12 
13 #ifndef __MIDI_DEVICE_H__6EE03181_DEEC_4771_A660_1597700B5773__
14 #define __MIDI_DEVICE_H__6EE03181_DEEC_4771_A660_1597700B5773__
15 
16 #include <string>
17 #include <vector>
18 
19 namespace CFugue
20 {
21  /// Returns the number of Output Midi Ports
22  unsigned int GetMidiOutPortCount();
23 
24  /// Returns the number of Input Midi Ports
25  unsigned int GetMidiInPortCount();
26 
27  /// Returns the name of the given Midi Input Port
28  std::string GetMidiInPortName(unsigned int nPortIndex);
29 
30  /// Returns the name of the given Midi Output Port
31  std::string GetMidiOutPortName(unsigned int nPortIndex);
32 
33  typedef std::vector<std::string> StringList;
34 
35  /// Returns the names of all Midi Input Ports available
36  StringList GetMidiInPortNames();
37 
38  /// Returns the names of all Midi Output Ports available
39  StringList GetMidiOutPortNames();
40 
41 } // namespace CFugue
42 
43 #endif // __MIDI_DEVICE_H__6EE03181_DEEC_4771_A660_1597700B5773__
unsigned int GetMidiInPortCount()
Returns the number of Input Midi Ports.
Definition: MidiDevice.cpp:20
StringList GetMidiInPortNames()
Returns the names of all Midi Input Ports available.
Definition: MidiDevice.cpp:38
std::string GetMidiOutPortName(unsigned int nPortIndex)
Returns the name of the given Midi Output Port.
Definition: MidiDevice.cpp:32
StringList GetMidiOutPortNames()
Returns the names of all Midi Output Ports available.
Definition: MidiDevice.cpp:48
std::string GetMidiInPortName(unsigned int nPortIndex)
Returns the name of the given Midi Input Port.
Definition: MidiDevice.cpp:26
unsigned int GetMidiOutPortCount()
Returns the number of Output Midi Ports.
Definition: MidiDevice.cpp:14

CFugue, the C++ Music Programming Library © Copyright 2009 Cenacle Research India Private Limited Gopalakrishna Palem