uses Transport::thruActivated for initial thru state
This commit is contained in:
parent
1fe67bec4f
commit
4469f2aa7f
|
|
@ -91,7 +91,7 @@ MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings,
|
|||
mMessage.data2 = 0;
|
||||
mMessage.length = 0;
|
||||
|
||||
mThruFilterCallback = thruOn;
|
||||
mThruFilterCallback = Transport::thruActivated ? thruOn : thruOff;
|
||||
mThruMapCallback = thruEcho;
|
||||
return *this;
|
||||
}
|
||||
|
|
@ -1421,7 +1421,7 @@ inline MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Se
|
|||
template<class Transport, class Settings, class Platform>
|
||||
void MidiInterface<Transport, Settings, Platform>::processThru()
|
||||
{
|
||||
if (!mThruFilterCallback(mMessage))
|
||||
if (!Transport::thruActivated || !mThruFilterCallback(mMessage))
|
||||
return;
|
||||
|
||||
MidiMessage thruMessage = mThruMapCallback(mMessage);
|
||||
|
|
|
|||
Loading…
Reference in New Issue