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

Method handleMIDIFromHost

Source/Core/CtrlrPanel/CtrlrPanelMIDIInputThread.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void CtrlrPanelMIDIInputThread::handleMIDIFromHost(MidiBuffer &buffer)
109{
110 {
111 const ScopedWriteLock sl(lock);
112 /* last event time is in samples, not event numbers you dumbass */
113 hostInputBuffer.addEvents (buffer, 0, buffer.getLastEventTime() + 1, 1);
114 }
115
116 notify();
117}
118
119void CtrlrPanelMIDIInputThread::closeInputDevice()
120{

Callers 1

processBlockMethod · 0.80

Calls 2

addEventsMethod · 0.80
getLastEventTimeMethod · 0.80

Tested by

no test coverage detected