13
0

improve initial coordinate with JACK transport state

This commit is contained in:
Paul Davis 2019-11-15 15:54:41 -07:00
parent 3d74af6c1f
commit 098bce1ece
2 changed files with 6 additions and 11 deletions

View File

@ -500,14 +500,6 @@ Session::immediately_post_engine ()
_engine.Running.connect_same_thread (*this, boost::bind (&Session::engine_running, this));
if (synced_to_engine()) {
_engine.transport_stop ();
}
if (config.get_jack_time_master()) {
_engine.transport_locate (_transport_sample);
}
try {
BootMessage (_("Set up LTC"));
setup_ltc ();

View File

@ -369,6 +369,12 @@ Session::post_engine_init ()
_locations->removed.connect_same_thread (*this, boost::bind (&Session::location_removed, this, _1));
_locations->changed.connect_same_thread (*this, boost::bind (&Session::locations_changed, this));
if (synced_to_engine()) {
_engine.transport_stop ();
}
// send_full_time_code (0);
} catch (AudioEngine::PortRegistrationFailure& err) {
error << err.what() << endmsg;
return -5;
@ -382,9 +388,6 @@ Session::post_engine_init ()
BootMessage (_("Reset Remote Controls"));
// send_full_time_code (0);
_engine.transport_locate (0);
send_immediate_mmc (MIDI::MachineControlCommand (MIDI::MachineControl::cmdMmcReset));
send_immediate_mmc (MIDI::MachineControlCommand (Timecode::Time ()));