mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
most of the 2.X->3.0 commit (up to rev 4299) except for gtk2_ardour/editor_canvas.cc; builds and runs and does a few specific things but expect it to be buggy for a while yet
git-svn-id: svn://localhost/ardour2/branches/3.0@4313 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
30daaebaa2
commit
bc89fe0147
252 changed files with 28174 additions and 14382 deletions
|
|
@ -70,14 +70,14 @@ ControlProtocol::next_track (uint32_t initial_id)
|
|||
id++;
|
||||
}
|
||||
|
||||
while (id < limit) {
|
||||
while (id <= limit) {
|
||||
if ((cr = session->route_by_remote_id (id)) != 0) {
|
||||
break;
|
||||
}
|
||||
id++;
|
||||
}
|
||||
|
||||
if (id == limit) {
|
||||
if (id >= limit) {
|
||||
id = 0;
|
||||
while (id != initial_id) {
|
||||
if ((cr = session->route_by_remote_id (id)) != 0) {
|
||||
|
|
@ -93,9 +93,9 @@ ControlProtocol::next_track (uint32_t initial_id)
|
|||
void
|
||||
ControlProtocol::prev_track (uint32_t initial_id)
|
||||
{
|
||||
uint32_t limit = session->nroutes() - 1;
|
||||
uint32_t limit = session->nroutes();
|
||||
boost::shared_ptr<Route> cr = route_table[0];
|
||||
uint32_t id;
|
||||
int32_t id;
|
||||
|
||||
if (cr) {
|
||||
id = cr->remote_control_id ();
|
||||
|
|
@ -104,7 +104,7 @@ ControlProtocol::prev_track (uint32_t initial_id)
|
|||
}
|
||||
|
||||
if (id == 0) {
|
||||
id = session->nroutes() - 1;
|
||||
id = limit;
|
||||
} else {
|
||||
id--;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue