diff options
author | David Robillard <d@drobilla.net> | 2007-07-05 03:06:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-05 03:06:59 +0000 |
commit | 6067f8f8572bd7b318d3d17f16dc192079c7e046 (patch) | |
tree | 8f1b6a37ea61b72f918c672b282056c48098e5d9 /src/AlsaDriver.cpp | |
parent | 8006c612d557bd071f9ab033c82d27a499bdc0e6 (diff) | |
download | patchage-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/AlsaDriver.cpp')
-rw-r--r-- | src/AlsaDriver.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index 7ed05bb..6a07487 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -30,8 +30,9 @@ using std::string; using namespace FlowCanvas; AlsaDriver::AlsaDriver(Patchage* app) -: _app(app), - _seq(NULL) + : Driver(128) + , _app(app) + , _seq(NULL) { } @@ -504,11 +505,11 @@ AlsaDriver::_refresh_main() switch (ev->type) { case SND_SEQ_EVENT_PORT_SUBSCRIBED: - _events.push(PatchageEvent(_app, PatchageEvent::CONNECTION, + _events.push(PatchageEvent(PatchageEvent::CONNECTION, ev->data.connect.sender, ev->data.connect.dest)); break; case SND_SEQ_EVENT_PORT_UNSUBSCRIBED: - _events.push(PatchageEvent(_app, PatchageEvent::DISCONNECTION, + _events.push(PatchageEvent(PatchageEvent::DISCONNECTION, ev->data.connect.sender, ev->data.connect.dest)); break; case SND_SEQ_EVENT_RESET: |