CFugue
midioutcombobox.cpp
1 #include "midioutcombobox.h"
2 #include "MidiDevice.h"
3 
4 MidiOutComboBox::MidiOutComboBox(QWidget *parent) :
5  QComboBox(parent)
6 {
7 }
8 
9 void MidiOutComboBox::PopulateDevices()
10 {
11  this->clear();
12  for(int i=0, nCount = CFugue::GetMidiOutPortCount(); i < nCount; ++i)
13  this->addItem(CFugue::GetMidiOutPortName(i).c_str());
14 }
std::string GetMidiOutPortName(unsigned int nPortIndex)
Returns the name of the given Midi Output Port.
Definition: MidiDevice.cpp:32
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