From 30c08ba655330232767554c48bda1975bfb5628c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Aug 2006 03:24:57 +0000 Subject: - Changed IO's vector's to PortList - Added new Port classes, code to drive them - Added PortList, which is a filthy mess ATM (nevermind that, it's the interface that's important at this stage) - Added ChanCount, though it isn't very thoroughly used yet. That's the next step.... - Fixed a few bugs relating to loading sessions saved with trunk - Fixed a few random other bugs Slowly working towards type agnosticism while keeping all the former code/logic intact is the name of the game here Warning: Removing ports is currently (intentionally) broken due solely to laziness. git-svn-id: svn://localhost/ardour2/branches/midi@786 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/track.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/track.cc') diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index f81ef9de4d..49578a7d04 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -88,7 +88,7 @@ Track::get_template () void Track::toggle_monitor_input () { - for (vector::iterator i = _inputs.begin(); i != _inputs.end(); ++i) { + for (PortSet::iterator i = _inputs.begin(); i != _inputs.end(); ++i) { (*i)->request_monitor_input(!(*i)->monitoring_input()); } } @@ -152,8 +152,8 @@ bool Track::can_record() { bool will_record = true; - for (size_t i = 0; i < _inputs.size() && will_record; i++) { - if (!_inputs[i]->connected()) + for (PortSet::iterator i = _inputs.begin(); i != _inputs.end() && will_record; ++i) { + if (!(*i)->connected()) will_record = false; } -- cgit v1.2.3