From 3b7230552d8aa6c36fd2fbc3ccc1cfb9109fc843 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 22 Jul 2009 13:51:16 +0000 Subject: make i18n build work ; add mackie dir back to build ; token work on amp for MIDI; don't try to subgroup route groups with MIDI (for now) git-svn-id: svn://localhost/ardour2/branches/3.0@5412 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/route_group.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/ardour/route_group.cc') diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc index f88df5c86a..26612226a7 100644 --- a/libs/ardour/route_group.cc +++ b/libs/ardour/route_group.cc @@ -34,6 +34,8 @@ #include "ardour/configuration.h" #include "ardour/session.h" +#include "i18n.h" + using namespace ARDOUR; using namespace sigc; using namespace std; @@ -224,6 +226,15 @@ RouteGroup::make_subgroup () RouteList rl; uint32_t nin = 0; + /* since we don't do MIDI Busses yet, check quickly ... */ + + for (list::iterator i = routes.begin(); i != routes.end(); ++i) { + if ((*i)->output()->n_ports().n_midi() != 0) { + PBD::info << _("You cannot subgroup MIDI tracks at this time") << endmsg; + return; + } + } + for (list::iterator i = routes.begin(); i != routes.end(); ++i) { nin = max (nin, (*i)->output()->n_ports().n_audio()); } -- cgit v1.2.3