MCP: fix bad use of strips container
git-svn-id: svn://localhost/ardour2/branches/3.0@11823 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f703a3cfd1
commit
05b36d0092
@ -298,7 +298,7 @@ MackieControlProtocol::switch_banks (int initial)
|
||||
|
||||
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("remote id %1 connecting %2 to %3 with port %4\n",
|
||||
route->remote_control_id(), route->name(), strip.name(), port_for_id(i)));
|
||||
route_table[i] = route;
|
||||
set_route_table (1, route);
|
||||
RouteSignal * rs = new RouteSignal (route, *this, strip, port_for_id(i));
|
||||
route_signals.push_back (rs);
|
||||
// update strip from route
|
||||
|
@ -30,9 +30,6 @@ Mackie::MackieSurface::init_controls()
|
||||
// intialise groups and strips
|
||||
Group * group = 0;
|
||||
|
||||
// make sure there are enough strips
|
||||
strips.resize (8);
|
||||
|
||||
group = new Group ("user");
|
||||
groups["user"] = group;
|
||||
|
||||
|
@ -18,8 +18,11 @@ Surface::Surface( uint32_t max_strips, uint32_t unit_strips )
|
||||
void Surface::init()
|
||||
{
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "Surface::init\n");
|
||||
|
||||
strips.resize (_max_strips);
|
||||
init_controls ();
|
||||
init_strips ();
|
||||
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "Surface::init finish\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user