/*
- Copyright (C) 2000-2007 Paul Davis
+ Copyright (C) 2000-2007 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#ifndef __ardour_route_group_specialized_h__
#define __ardour_route_group_specialized_h__
-#include <ardour/route_group.h>
-#include <ardour/audio_track.h>
+#include "ardour/route_group.h"
+#include "ardour/track.h"
namespace ARDOUR {
-template<class T> void
-RouteGroup::apply (void (Track::*func)(T, void *), T val, void *src)
+template<class T> void
+RouteGroup::apply (void (Track::*func)(T, PBD::Controllable::GroupControlDisposition), T val, PBD::Controllable::GroupControlDisposition group_override)
{
- for (list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
- Track *at;
- if ((at = dynamic_cast<Track*>(*i)) != 0) {
- (at->*func)(val, this);
+ for (RouteList::iterator i = routes->begin(); i != routes->end(); i++) {
+ boost::shared_ptr<Track> at;
+
+ if ((at = boost::dynamic_pointer_cast<Track>(*i)) != 0) {
+ (at.get()->*func)(val, group_override);
}
}
}
-
+
} /* namespace ARDOUR */
#endif /* __ardour_route_group_specialized_h__ */
+