summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-24 17:27:21 +0000
committerDavid Robillard <d@drobilla.net>2008-02-24 17:27:21 +0000
commit25f833aac2100a9947dbd7ee1de7d8c6a6b41648 (patch)
tree73402fd5e8b43c06e5cfb548f10402713d1c7fde /src/Patchage.cpp
parentbd34ee943e1041cfff7d4bd896bb4bb2c09a546a (diff)
downloadpatchage-25f833aac2100a9947dbd7ee1de7d8c6a6b41648.tar.gz
patchage-25f833aac2100a9947dbd7ee1de7d8c6a6b41648.tar.bz2
patchage-25f833aac2100a9947dbd7ee1de7d8c6a6b41648.zip
Rework event handling slightly for jack dbus driver.
git-svn-id: http://svn.drobilla.net/lad/patchage@1162 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 4519ede..6396526 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -305,27 +305,19 @@ Patchage::idle_callback()
// Process any JACK events
if (_jack_driver) {
- while (!_jack_driver->events().empty()) {
- PatchageEvent& ev = _jack_driver->events().front();
- ev.execute(this);
- _jack_driver->events().pop();
- }
+ _jack_driver->process_events(this);
}
// Process any ALSA events
#ifdef HAVE_ALSA
if (_alsa_driver) {
- while (!_alsa_driver->events().empty()) {
- PatchageEvent& ev = _alsa_driver->events().front();
- ev.execute(this);
- _alsa_driver->events().pop();
- }
+ _alsa_driver->process_events(this);
}
#endif
#ifdef HAVE_LASH
if (_lash_driver->is_attached())
- _lash_driver->process_events();
+ _lash_driver->process_events(this);
#endif
// Do a full refresh (ie user clicked refresh)