mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
When using the Editor's Shuttle control, stop any shuttling by calling Session::request_stop()
Previously we were using a convoluted scheme of firstly setting the transport speed to 1.0, then later re-setting it to 0.0. On Windows this was having some strange side-effects (such as leaving the transport in Play mode and/or resetting the timeline to zero timecode). Hopefully this change will also work for the other platforms.
This commit is contained in:
parent
974e5dcc0c
commit
32924aa7b8
1 changed files with 3 additions and 2 deletions
|
|
@ -302,9 +302,10 @@ ShuttleControl::on_button_release_event (GdkEventButton* ev)
|
|||
|
||||
if (Config->get_shuttle_behaviour() == Sprung) {
|
||||
if (shuttle_speed_on_grab == 0 ) {
|
||||
_session->request_transport_speed (1.0);
|
||||
_session->request_stop ();
|
||||
} else {
|
||||
_session->request_transport_speed (shuttle_speed_on_grab);
|
||||
}
|
||||
_session->request_transport_speed (shuttle_speed_on_grab);
|
||||
} else {
|
||||
mouse_shuttle (ev->x, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue