From 6ee437d238c8cefe62b286f5a422670e705e795d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 9 Jan 2008 02:51:02 +0000 Subject: More patchage refresh performance improvements. git-svn-id: http://svn.drobilla.net/lad/patchage@1042 a436a847-0d15-0410-975c-d299462d15a1 --- src/AlsaDriver.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'src') 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( 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( 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( new PatchageModule(_app, client_name, type)); m->load_location(); - m->store_location(); _app->canvas()->add_item(m); } -- cgit v1.2.1