| 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 | { |
no test coverage detected