CFugue
midiincombobox.cpp
1 #include "midiincombobox.h"
2 #include "MidiDevice.h"
3 
4 MidiInComboBox::MidiInComboBox(QWidget *parent) :
5  QComboBox(parent)
6 {
7 }
8 
9 void MidiInComboBox::PopulateDevices()
10 {
11  this->clear();
12  for(int i=0, nCount = CFugue::GetMidiInPortCount(); i < nCount; ++i)
13  this->addItem(CFugue::GetMidiInPortName(i).c_str());
14 }
unsigned int GetMidiInPortCount()
Returns the number of Input Midi Ports.
Definition: MidiDevice.cpp:20
std::string GetMidiInPortName(unsigned int nPortIndex)
Returns the name of the given Midi Input Port.
Definition: MidiDevice.cpp:26

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