summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/mackie_control_protocol_poll.cc
diff options
context:
space:
mode:
authorJohn Anderson <ardour@semiosix.com>2007-03-09 11:24:14 +0000
committerJohn Anderson <ardour@semiosix.com>2007-03-09 11:24:14 +0000
commit04a7c950ab232ebafc5d7ecc3f82564be3ac5550 (patch)
tree6584746db2eae549176af3b86d8df0b6dfbfa397 /libs/surfaces/mackie/mackie_control_protocol_poll.cc
parenta48a83ae5a017d103d9a410d8f63beb0ae918247 (diff)
poll for automation
git-svn-id: svn://localhost/ardour2/trunk@1566 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.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/mackie_control_protocol_poll.cc b/libs/surfaces/mackie/mackie_control_protocol_poll.cc
index 859b67c17d..8ef0431ed8 100644
--- a/libs/surfaces/mackie/mackie_control_protocol_poll.cc
+++ b/libs/surfaces/mackie/mackie_control_protocol_poll.cc
@@ -71,6 +71,9 @@ void * MackieControlProtocol::monitor_work()
}
// provide a cancellation point
pthread_testcancel();
+
+ // poll for automation data from the routes
+ poll_automation();
}
// these never get called
@@ -86,6 +89,7 @@ void MackieControlProtocol::update_ports()
// create pollfd structures if necessary
if ( _ports_changed )
{
+ cout << "MackieControlProtocol::update_ports changed 1" << endl;
Glib::Mutex::Lock ul( update_mutex );
// yes, this is a double-test locking paradigm, or whatever it's called
// because we don't *always* need to acquire the lock for the first test
@@ -178,10 +182,14 @@ void MackieControlProtocol::handle_port_changed( SurfacePort * port, bool active
}
else
{
+cout << __FILE__ << ':' << __LINE__ << endl;
_ports_changed = true;
+cout << __FILE__ << ':' << __LINE__ << endl;
// port added
update_ports();
+cout << __FILE__ << ':' << __LINE__ << endl;
update_surface();
+cout << __FILE__ << ':' << __LINE__ << endl;
// TODO update bank size