From b2e6746f107694b2ebcd5b037dfa3e410b523a01 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 7 Nov 2011 22:39:16 +0000 Subject: [PATCH] Fix name and a comment. git-svn-id: svn://localhost/ardour2/branches/3.0@10483 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/route_dag.h | 2 +- libs/ardour/route_dag.cc | 7 +++++-- libs/ardour/session.cc | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libs/ardour/ardour/route_dag.h b/libs/ardour/ardour/route_dag.h index d90fb8676f..c75b5d36d6 100644 --- a/libs/ardour/ardour/route_dag.h +++ b/libs/ardour/ardour/route_dag.h @@ -47,7 +47,7 @@ private: EdgeMap _to_from; }; -boost::shared_ptr topographical_sort ( +boost::shared_ptr topological_sort ( boost::shared_ptr, DAGEdges ); diff --git a/libs/ardour/route_dag.cc b/libs/ardour/route_dag.cc index ec1bc72127..9c69fb35db 100644 --- a/libs/ardour/route_dag.cc +++ b/libs/ardour/route_dag.cc @@ -148,7 +148,7 @@ struct RouteRecEnabledComparator boost::shared_ptr -ARDOUR::topographical_sort ( +ARDOUR::topological_sort ( boost::shared_ptr routes, DAGEdges edges ) @@ -165,7 +165,10 @@ ARDOUR::topographical_sort ( } } - /* Sort the initial queue so that non-rec-enabled routes are run first */ + /* Sort the initial queue so that non-rec-enabled routes are run first. + This is so that routes can record things coming from other routes + via external connections. + */ queue.sort (RouteRecEnabledComparator ()); /* Do the sort: algorithm is Kahn's from Wikipedia. diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index a5e6fca564..f901de87cd 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1347,7 +1347,7 @@ Session::resort_routes_using (boost::shared_ptr r) trace_terminal (*i, *i); } - boost::shared_ptr sorted_routes = topographical_sort (r, edges); + boost::shared_ptr sorted_routes = topological_sort (r, edges); route_graph->rechain (sorted_routes); #ifndef NDEBUG