MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / process

Method process

Source/Core/CtrlrPanel/CtrlrPanelMIDIInputThread.cpp:46–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void 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
77int CtrlrPanelMIDIInputThread::getListenerInputMidiChannel()
78{

Callers

nothing calls this directly

Calls 9

channelizeBufferFunction · 0.85
getMidiOptionBoolMethod · 0.80
getMidiChannelMethod · 0.80
addMidiToOutputQueueMethod · 0.80
getProcessorOwnerMethod · 0.80
sendMidiMethod · 0.65
matchMethod · 0.45
getNumEventsMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected