mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
continue with code simplification and add comment given 4a40ff9e53
This commit is contained in:
parent
abcb092adc
commit
f04974aa6c
1 changed files with 2 additions and 7 deletions
|
|
@ -97,14 +97,9 @@ Session::realtime_stop (bool abort, bool clear_state)
|
||||||
ENSURE_PROCESS_THREAD;
|
ENSURE_PROCESS_THREAD;
|
||||||
|
|
||||||
DEBUG_TRACE (DEBUG::Transport, string_compose ("realtime stop @ %1 speed = %2\n", _transport_sample, _transport_speed));
|
DEBUG_TRACE (DEBUG::Transport, string_compose ("realtime stop @ %1 speed = %2\n", _transport_sample, _transport_speed));
|
||||||
PostTransportWork todo = PostTransportWork (0);
|
PostTransportWork todo = PostTransportStop;
|
||||||
|
|
||||||
if (_transport_speed < 0.0f) {
|
|
||||||
todo = (PostTransportWork (todo | PostTransportStop));
|
|
||||||
} else {
|
|
||||||
todo = PostTransportWork (todo | PostTransportStop);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* this resets the speed we will start at if just requested to roll again */
|
||||||
_default_transport_speed = 1.0;
|
_default_transport_speed = 1.0;
|
||||||
|
|
||||||
/* call routes */
|
/* call routes */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue