summaryrefslogtreecommitdiffstats
path: root/src/JackDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-05 03:06:59 +0000
committerDavid Robillard <d@drobilla.net>2007-07-05 03:06:59 +0000
commit6067f8f8572bd7b318d3d17f16dc192079c7e046 (patch)
tree8f1b6a37ea61b72f918c672b282056c48098e5d9 /src/JackDriver.cpp
parent8006c612d557bd071f9ab033c82d27a499bdc0e6 (diff)
downloadpatchage-6067f8f8572bd7b318d3d17f16dc192079c7e046.tar.gz
patchage-6067f8f8572bd7b318d3d17f16dc192079c7e046.tar.bz2
patchage-6067f8f8572bd7b318d3d17f16dc192079c7e046.zip
More memory consumption reduction.
git-svn-id: http://svn.drobilla.net/lad/patchage@579 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r--src/JackDriver.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index 3428eb6..4513830 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -37,11 +37,12 @@ using namespace FlowCanvas;
JackDriver::JackDriver(Patchage* app)
-: _app(app)
-, _client(NULL)
-, _is_activated(false)
-, _xruns(0)
-, _xrun_delay(0)
+ : Driver(128)
+ , _app(app)
+ , _client(NULL)
+ , _is_activated(false)
+ , _xruns(0)
+ , _xrun_delay(0)
{
_last_pos.frame = 0;
_last_pos.valid = (jack_position_bits_t)0;
@@ -401,11 +402,9 @@ JackDriver::jack_port_registration_cb(jack_port_id_t port_id, int registered, vo
jack_reset_max_delayed_usecs(me->_client);
if (registered) {
- me->_events.push(PatchageEvent(me->_app,
- PatchageEvent::PORT_CREATION, port_id));
+ me->_events.push(PatchageEvent(PatchageEvent::PORT_CREATION, port_id));
} else {
- me->_events.push(PatchageEvent(me->_app,
- PatchageEvent::PORT_DESTRUCTION, port_id));
+ me->_events.push(PatchageEvent(PatchageEvent::PORT_DESTRUCTION, port_id));
}
}
@@ -420,11 +419,9 @@ JackDriver::jack_port_connect_cb(jack_port_id_t src, jack_port_id_t dst, int con
jack_reset_max_delayed_usecs(me->_client);
if (connect) {
- me->_events.push(PatchageEvent(me->_app,
- PatchageEvent::CONNECTION, src, dst));
+ me->_events.push(PatchageEvent(PatchageEvent::CONNECTION, src, dst));
} else {
- me->_events.push(PatchageEvent(me->_app,
- PatchageEvent::DISCONNECTION, src, dst));
+ me->_events.push(PatchageEvent(PatchageEvent::DISCONNECTION, src, dst));
}
}