Skip to content

Commit 4469f2a

Browse files
hyperbolistfranky47
authored andcommitted
uses Transport::thruActivated for initial thru state
1 parent 1fe67be commit 4469f2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MIDI.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings,
9191
mMessage.data2 = 0;
9292
mMessage.length = 0;
9393

94-
mThruFilterCallback = thruOn;
94+
mThruFilterCallback = Transport::thruActivated ? thruOn : thruOff;
9595
mThruMapCallback = thruEcho;
9696
return *this;
9797
}
@@ -1421,7 +1421,7 @@ inline MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Se
14211421
template<class Transport, class Settings, class Platform>
14221422
void MidiInterface<Transport, Settings, Platform>::processThru()
14231423
{
1424-
if (!mThruFilterCallback(mMessage))
1424+
if (!Transport::thruActivated || !mThruFilterCallback(mMessage))
14251425
return;
14261426

14271427
MidiMessage thruMessage = mThruMapCallback(mMessage);

0 commit comments

Comments
 (0)