| 44 | } |
| 45 | |
| 46 | void CtrlrPanelMIDIInputThread::process() |
| 47 | { |
| 48 | const ScopedWriteLock sl (lock); |
| 49 | |
| 50 | if (owner.getMidiOptionBool(panelMidiThruD2D)) |
| 51 | { |
| 52 | owner.sendMidi (deviceInputBuffer); |
| 53 | } |
| 54 | |
| 55 | if (inputComparator) |
| 56 | { |
| 57 | inputComparator->match(deviceInputBuffer); |
| 58 | } |
| 59 | |
| 60 | if (owner.getMidiOptionBool(panelMidiInputFromHostCompare) && hostInputBuffer.getNumEvents() > 0) |
| 61 | { |
| 62 | if (inputComparator) |
| 63 | inputComparator->match(hostInputBuffer); |
| 64 | } |
| 65 | |
| 66 | if (owner.getMidiOptionBool(panelMidiThruD2H)) |
| 67 | { |
| 68 | channelizeBuffer (deviceInputBuffer, junkBuffer, owner.getMidiChannel(panelMidiOutputChannelHost), owner.getMidiOptionBool(panelMidiThruD2HChannelize)); |
| 69 | owner.getCtrlrManagerOwner().getProcessorOwner()->addMidiToOutputQueue (deviceInputBuffer); |
| 70 | } |
| 71 | |
| 72 | hostInputBuffer.clear(); |
| 73 | deviceInputBuffer.clear(); |
| 74 | devicePartialBuffer.clear(); |
| 75 | } |
| 76 | |
| 77 | int CtrlrPanelMIDIInputThread::getListenerInputMidiChannel() |
| 78 | { |
nothing calls this directly
no test coverage detected