diff options
author | David Robillard <d@drobilla.net> | 2008-01-09 02:51:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-09 02:51:02 +0000 |
commit | 6ee437d238c8cefe62b286f5a422670e705e795d (patch) | |
tree | 19ed621778f7d7a0095425403ba828c3e92099c8 | |
parent | 982e2e0d0d0aebadf5e1878e6f812a65d3da6d34 (diff) | |
download | patchage-6ee437d238c8cefe62b286f5a422670e705e795d.tar.gz patchage-6ee437d238c8cefe62b286f5a422670e705e795d.tar.bz2 patchage-6ee437d238c8cefe62b286f5a422670e705e795d.zip |
More patchage refresh performance improvements.
git-svn-id: http://svn.drobilla.net/lad/patchage@1042 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/AlsaDriver.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index 0e92b2b..8047318 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -206,17 +206,12 @@ AlsaDriver::refresh_ports() type = ((is_input) ? Input : Output); - // See if an InputOutput module exists (maybe with Jack ports on it) - m = _app->canvas()->find_module(client_name, InputOutput); + m = _app->canvas()->find_module(client_name, type); - if (!m) - m = _app->canvas()->find_module(client_name, type); - if (!m) { m = boost::shared_ptr<PatchageModule>( new PatchageModule(_app, client_name, type)); m->load_location(); - m->store_location(); _app->canvas()->add_item(m); } @@ -227,17 +222,12 @@ AlsaDriver::refresh_ports() } else { // two ports to add type = Input; - // See if an InputOutput module exists (maybe with Jack ports on it) - m = _app->canvas()->find_module(client_name, InputOutput); - - if (!m) - m = _app->canvas()->find_module(client_name, type); + m = _app->canvas()->find_module(client_name, type); if (!m) { m = boost::shared_ptr<PatchageModule>( new PatchageModule(_app, client_name, type)); m->load_location(); - m->store_location(); _app->canvas()->add_item(m); } @@ -249,17 +239,12 @@ AlsaDriver::refresh_ports() type = Output; - // See if an InputOutput module exists (maybe with Jack ports on it) - m = _app->canvas()->find_module(client_name, InputOutput); - - if (!m) - m = _app->canvas()->find_module(client_name, type); + m = _app->canvas()->find_module(client_name, type); if (!m) { m = boost::shared_ptr<PatchageModule>( new PatchageModule(_app, client_name, type)); m->load_location(); - m->store_location(); _app->canvas()->add_item(m); } |