summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/utils.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-05-27 16:11:47 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:45 -0400
commit2ac7108ccbcf873128fef7977edfdcd90d243104 (patch)
tree8e2e006a8ea80c594fd4741ba8f8d463b216e52e /libs/ardour/ardour/utils.h
parent203cf3ce7c3b6130a58626082d051ade8ca90dbf (diff)
use new record safe control in libardour
Diffstat (limited to 'libs/ardour/ardour/utils.h')
-rw-r--r--libs/ardour/ardour/utils.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/libs/ardour/ardour/utils.h b/libs/ardour/ardour/utils.h
index 1dc7c2baf4..4edf9fb446 100644
--- a/libs/ardour/ardour/utils.h
+++ b/libs/ardour/ardour/utils.h
@@ -176,7 +176,7 @@ LIBARDOUR_API bool matching_unsuffixed_filename_exists_in (const std::string& di
LIBARDOUR_API uint32_t how_many_dsp_threads ();
-template<typename T> boost::shared_ptr<ControlList> route_list_to_control_list (boost::shared_ptr<RouteList> rl, boost::shared_ptr<T> (Route::*get_control)() const) {
+template<typename T> boost::shared_ptr<ControlList> route_list_to_control_list (boost::shared_ptr<RouteList> rl, boost::shared_ptr<T> (Stripable::*get_control)() const) {
boost::shared_ptr<ControlList> cl (new ControlList);
for (RouteList::const_iterator r = rl->begin(); r != rl->end(); ++r) {
boost::shared_ptr<AutomationControl> ac = ((*r).get()->*get_control)();
@@ -187,18 +187,6 @@ template<typename T> boost::shared_ptr<ControlList> route_list_to_control_list (
return cl;
}
-template<typename T> boost::shared_ptr<ControlList> route_list_to_control_list (boost::shared_ptr<RouteList> rl, boost::shared_ptr<T> (Track::*get_control)() const) {
- boost::shared_ptr<ControlList> cl (new ControlList);
- for (RouteList::const_iterator r = rl->begin(); r != rl->end(); ++r) {
- boost::shared_ptr<Track> t = boost::dynamic_pointer_cast<Track> (*r);
- boost::shared_ptr<AutomationControl> ac = (t.get()->*get_control)();
- if (ac) {
- cl->push_back (ac);
- }
- }
- return cl;
-}
-
#if __APPLE__
LIBARDOUR_API std::string CFStringRefToStdString(CFStringRef stringRef);
#endif // __APPLE__