diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-12-06 19:00:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-12-06 19:00:57 +0000 |
commit | 4566992139ba5242cd4a0670f85c51367340d3ff (patch) | |
tree | b766630c543540ff6ae6f093d15346dfcac35deb /libs/ardour/session.cc | |
parent | 79e8659a1b8ea341f45a0431772e56526a2c7c61 (diff) |
miscellaneous stuff, SVN IS TEMPORARILY BROKEN. FIX WITHIN 18 HOURS
git-svn-id: svn://localhost/ardour2/trunk@1192 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 0cc00bc754..4169361c14 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -3313,6 +3313,8 @@ Session::remove_redirect (Redirect* redirect) PortInsert* port_insert; PluginInsert* plugin_insert; + cerr << "Removing a redirect!\n"; + if ((insert = dynamic_cast<Insert *> (redirect)) != 0) { if ((port_insert = dynamic_cast<PortInsert *> (insert)) != 0) { _port_inserts.remove (port_insert); @@ -3323,7 +3325,9 @@ Session::remove_redirect (Redirect* redirect) /*NOTREACHED*/ } } else if ((send = dynamic_cast<Send *> (redirect)) != 0) { + cerr << "Remove send, used to have " << _sends.size() << endl; _sends.remove (send); + cerr << "post removal, have " << _sends.size() << endl; } else { fatal << _("programming error: unknown type of Redirect deleted!") << endmsg; /*NOTREACHED*/ @@ -3451,9 +3455,15 @@ Session::ensure_passthru_buffers (uint32_t howmany) string Session::next_send_name () { - char buf[32]; - snprintf (buf, sizeof (buf), "send %" PRIu32, ++send_cnt); - return buf; + uint32_t cnt = 0; + + shared_ptr<RouteList> r = routes.reader (); + + for (RouteList::const_iterator i = r->begin(); i != r->end(); ++i) { + cnt += (*i)->count_sends (); + } + + return string_compose (_("send %1"), ++cnt); } string |