From c335e2b88b051a1a14b0806ffabb257c2a0d0e74 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Jun 2007 02:17:40 +0000 Subject: Monitor/change ALSA connections without refreshing entire canvas (much faster). Waiting on JACK to provide the notification to do the same.... git-svn-id: http://svn.drobilla.net/lad/patchage@531 a436a847-0d15-0410-975c-d299462d15a1 --- src/Driver.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Driver.h') diff --git a/src/Driver.h b/src/Driver.h index 3e550e3..18489ae 100644 --- a/src/Driver.h +++ b/src/Driver.h @@ -20,6 +20,8 @@ #include #include +#include +#include "PatchageEvent.h" class PatchagePort; @@ -40,6 +42,8 @@ public: virtual bool disconnect(boost::shared_ptr src_port, boost::shared_ptr dst_port) = 0; + Raul::SRSWQueue& events() { return _events; } + /** Returns whether or not a refresh is required (pending). */ inline bool is_dirty() const { return _is_dirty; } @@ -50,9 +54,11 @@ public: sigc::signal signal_detached; protected: - Driver() : _is_dirty(false) {} + Driver() : _is_dirty(false), _events(1024) /* FIXME: size? */ {} bool _is_dirty; + + Raul::SRSWQueue _events; }; -- cgit v1.2.1