mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Auto-return: cancel auto-return on fast-wind (>2x), but ignore small varispeed changes
*ToDo: we need an actual FFWD/REW state that is set when we are fast-winding as a locate mechanism
This commit is contained in:
parent
838279c5e8
commit
bf88f3fe64
1 changed files with 3 additions and 2 deletions
|
|
@ -365,8 +365,9 @@ Session::set_transport_speed (double speed)
|
||||||
clear_clicks ();
|
clear_clicks ();
|
||||||
_engine_speed = new_engine_speed;
|
_engine_speed = new_engine_speed;
|
||||||
|
|
||||||
if (!Config->get_auto_return_after_rewind_ffwd() && fabs (speed) != 1.0 && _transport_fsm->default_speed() == 1.0) {
|
if (!Config->get_auto_return_after_rewind_ffwd() && fabs (speed) > 2.0) {
|
||||||
/* varispeed of any sort cancels auto-return */
|
/* fast-wind of any sort should cancel auto-return */
|
||||||
|
/* since we don't have an actual ffwd/rew state yet, just trigger on a 'fast' varispeed */
|
||||||
_requested_return_sample = -1;
|
_requested_return_sample = -1;
|
||||||
_last_roll_location = -1;
|
_last_roll_location = -1;
|
||||||
_last_roll_or_reversal_location = -1;
|
_last_roll_or_reversal_location = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue