MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getOutputCount

Method getOutputCount

TheForceEngine/TFE_Audio/systemMidiDevice.cpp:97–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 u32 SystemMidiDevice::getOutputCount()
98 {
99 m_outputs.clear();
100 if (m_midiout)
101 {
102 u32 count = m_midiout->getPortCount();
103
104 m_outputs.push_back(count ? "Disabled" : "Disabled: no ports found");
105
106 for (u32 i = 0; i < count; i++)
107 {
108 m_outputs.push_back(m_midiout->getPortName(i));
109 }
110 } else {
111 m_outputs.push_back("Disabled: internal MIDI error");
112 }
113 return (u32)m_outputs.size();
114 }
115
116 void SystemMidiDevice::getOutputName(s32 index, char* buffer, u32 maxLength)
117 {

Callers 1

configSoundFunction · 0.45

Calls 5

push_backMethod · 0.80
clearMethod · 0.45
getPortCountMethod · 0.45
getPortNameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected