show loop markers when looping is initiated
git-svn-id: svn://localhost/ardour2/branches/3.0@11610 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a0207cb76f
commit
208703da53
@ -1719,7 +1719,9 @@ ARDOUR_UI::toggle_roll (bool with_abort, bool roll_out_of_bounded_mode)
|
||||
void
|
||||
ARDOUR_UI::toggle_session_auto_loop ()
|
||||
{
|
||||
if (!_session) {
|
||||
Location * looploc = _session->locations()->auto_loop_location();
|
||||
|
||||
if (!_session || !looploc) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1727,24 +1729,18 @@ ARDOUR_UI::toggle_session_auto_loop ()
|
||||
|
||||
if (_session->transport_rolling()) {
|
||||
|
||||
Location * looploc = _session->locations()->auto_loop_location();
|
||||
|
||||
if (looploc) {
|
||||
_session->request_locate (looploc->start(), true);
|
||||
_session->request_play_loop (false);
|
||||
}
|
||||
_session->request_locate (looploc->start(), true);
|
||||
_session->request_play_loop (false);
|
||||
|
||||
} else {
|
||||
_session->request_play_loop (false);
|
||||
}
|
||||
} else {
|
||||
|
||||
Location * looploc = _session->locations()->auto_loop_location();
|
||||
|
||||
if (looploc) {
|
||||
_session->request_play_loop (true);
|
||||
}
|
||||
_session->request_play_loop (true);
|
||||
}
|
||||
|
||||
//show the loop markers
|
||||
looploc->set_hidden (false, this);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user