diff options
author | David Robillard <d@drobilla.net> | 2007-06-08 02:17:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-08 02:17:40 +0000 |
commit | c335e2b88b051a1a14b0806ffabb257c2a0d0e74 (patch) | |
tree | b0a024b901f20254b3354cb7bb03f581b435c245 /src/Driver.h | |
parent | 5a2358e39602607757fedd08a7355bede3cb8739 (diff) | |
download | patchage-c335e2b88b051a1a14b0806ffabb257c2a0d0e74.tar.gz patchage-c335e2b88b051a1a14b0806ffabb257c2a0d0e74.tar.bz2 patchage-c335e2b88b051a1a14b0806ffabb257c2a0d0e74.zip |
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
Diffstat (limited to 'src/Driver.h')
-rw-r--r-- | src/Driver.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 <boost/shared_ptr.hpp> #include <sigc++/sigc++.h> +#include <raul/SRSWQueue.h> +#include "PatchageEvent.h" class PatchagePort; @@ -40,6 +42,8 @@ public: virtual bool disconnect(boost::shared_ptr<PatchagePort> src_port, boost::shared_ptr<PatchagePort> dst_port) = 0; + Raul::SRSWQueue<PatchageEvent>& 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<void> signal_detached; protected: - Driver() : _is_dirty(false) {} + Driver() : _is_dirty(false), _events(1024) /* FIXME: size? */ {} bool _is_dirty; + + Raul::SRSWQueue<PatchageEvent> _events; }; |