From dd9f9ef19dfa6cd44be17ed4eb6a3d2c65bed6a0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 19 May 2023 23:28:32 +0200 Subject: [PATCH] When synced to engine vari-speed is not possible --- libs/ardour/session_transport.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 260ec803bd..53b8242105 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -325,6 +325,11 @@ void Session::set_default_play_speed (double spd) { ENSURE_PROCESS_THREAD; + if (synced_to_engine()) { + if (spd != 0 && spd != 1) { + return; + } + } /* see also Port::set_speed_ratio and * VMResampler::set_rratio() for min/max range. * speed must be > +/- 100 / 16 % @@ -349,6 +354,10 @@ Session::set_transport_speed (double speed) ENSURE_PROCESS_THREAD; DEBUG_TRACE (DEBUG::Transport, string_compose ("@ %1 Set transport speed to %2 from %3 (es = %4)\n", _transport_sample, speed, _transport_fsm->transport_speed(), _engine_speed)); + if (synced_to_engine() && speed != 1.0) { + return; + } + double default_speed = _transport_fsm->default_speed(); assert (speed != 0.0);