Re-initialize MMC devices when the preference is enabled

This commit is contained in:
Robin Gareus
2017-09-30 16:48:30 +02:00
parent 5fa9f8b399
commit 45336723f9

View File

@@ -4147,6 +4147,11 @@ Session::config_changed (std::string p, bool ours)
} else if (p == "send-mmc") {
_mmc->enable_send (Config->get_send_mmc ());
if (Config->get_send_mmc ()) {
/* re-initialize MMC */
send_immediate_mmc (MIDI::MachineControlCommand (MIDI::MachineControl::cmdMmcReset));
send_immediate_mmc (MIDI::MachineControlCommand (Timecode::Time ()));
}
} else if (p == "jack-time-master") {