diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-30 16:48:30 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-30 16:48:30 +0200 |
commit | 45336723f994d7ab7cbd59e88904548ee78891b1 (patch) | |
tree | 0e0e62a725837642ac4077ff4d8bb41863abbfdb /libs/ardour/session_state.cc | |
parent | 5fa9f8b399726e248412ebcfdeb8ed751f5a48d4 (diff) |
Re-initialize MMC devices when the preference is enabled
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 3bdde95f27..5ffc2a8cc7 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -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") { |