summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/mackie_control_protocol_poll.cc
diff options
context:
space:
mode:
authorJohn Anderson <ardour@semiosix.com>2007-07-17 10:17:59 +0000
committerJohn Anderson <ardour@semiosix.com>2007-07-17 10:17:59 +0000
commitf2a9371d28231ef756a8a54550beda01cbd69c08 (patch)
tree0c226fbd7ba3dfdbbdcf4aeecc5b4b228911bbac /libs/surfaces/mackie/mackie_control_protocol_poll.cc
parenta1a859b1e8a4624da280cdf1715db117e0be74fc (diff)
allow surface to work with linked panners on stereo input tracks/busses
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2137 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_control_protocol_poll.cc')
-rw-r--r--libs/surfaces/mackie/mackie_control_protocol_poll.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/surfaces/mackie/mackie_control_protocol_poll.cc b/libs/surfaces/mackie/mackie_control_protocol_poll.cc
index 05681c0c25..951fb75a50 100644
--- a/libs/surfaces/mackie/mackie_control_protocol_poll.cc
+++ b/libs/surfaces/mackie/mackie_control_protocol_poll.cc
@@ -88,7 +88,9 @@ void MackieControlProtocol::update_ports()
for( MackiePorts::iterator it = _ports.begin(); it != _ports.end(); ++it )
{
- //cout << "adding port " << (*it)->port().name() << " to pollfd" << endl;
+#ifdef DEBUG
+ cout << "adding port " << (*it)->port().name() << " to pollfd" << endl;
+#endif
pfd[nfds].fd = (*it)->port().selectable();
pfd[nfds].events = POLLIN|POLLHUP|POLLERR;
++nfds;
@@ -179,14 +181,18 @@ void MackieControlProtocol::handle_port_active( SurfacePort * port )
// finally update session state to the surface
// TODO but this is also done in set_active, and
// in fact update_surface won't execute unless
+#ifdef DEBUG
+ cout << "update_surface in handle_port_active" << endl;
+#endif
// _active == true
- //cout << "update_surface in handle_port_active" << endl;
update_surface();
}
void MackieControlProtocol::handle_port_init( Mackie::SurfacePort * sport )
{
- //cout << "MackieControlProtocol::handle_port_init" << endl;
+#ifdef DEBUG
+ cout << "MackieControlProtocol::handle_port_init" << endl;
+#endif
_ports_changed = true;
update_ports();
}