diff options
author | David Robillard <d@drobilla.net> | 2008-01-09 02:39:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-09 02:39:37 +0000 |
commit | 982e2e0d0d0aebadf5e1878e6f812a65d3da6d34 (patch) | |
tree | 478afcf9e0644a8ed9c979f9655ae5e00faf6654 /src/AlsaDriver.cpp | |
parent | 4eee416f717d25948548652144ae4ac7317323f6 (diff) | |
download | patchage-982e2e0d0d0aebadf5e1878e6f812a65d3da6d34.tar.gz patchage-982e2e0d0d0aebadf5e1878e6f812a65d3da6d34.tar.bz2 patchage-982e2e0d0d0aebadf5e1878e6f812a65d3da6d34.zip |
Patchage refresh performance improvements
git-svn-id: http://svn.drobilla.net/lad/patchage@1041 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/AlsaDriver.cpp')
-rw-r--r-- | src/AlsaDriver.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index 24cb850..0e92b2b 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -131,8 +131,6 @@ AlsaDriver::refresh_ports() bool is_duplex = false; bool is_application = true; - set<SharedPtr<PatchageModule> > resized_modules; - while (snd_seq_query_next_client (_seq, cinfo) >= 0) { snd_seq_port_info_set_client(pinfo, snd_seq_client_info_get_client(cinfo)); snd_seq_port_info_set_port(pinfo, -1); @@ -196,7 +194,6 @@ AlsaDriver::refresh_ports() m->add_port(create_port(m, port_name, true, addr)); m->add_port(create_port(m, port_name, false, addr)); } - resized_modules.insert(m); } } else { // non-application input/output ports (hw interface, etc) go on separate modules @@ -225,7 +222,6 @@ AlsaDriver::refresh_ports() if (!m->get_port(port_name)) { m->add_port(create_port(m, port_name, is_input, addr)); - resized_modules.insert(m); } } else { // two ports to add @@ -249,7 +245,6 @@ AlsaDriver::refresh_ports() if (!m->get_port(port_name)) { m->add_port(create_port(m, port_name, true, addr)); - resized_modules.insert(m); } type = Output; @@ -270,16 +265,11 @@ AlsaDriver::refresh_ports() if (!m->get_port(port_name)) { m->add_port(create_port(m, port_name, false, addr)); - resized_modules.insert(m); } } } } } - - for (set<SharedPtr<PatchageModule> >::const_iterator i = resized_modules.begin(); - i != resized_modules.end(); ++i) - (*i)->resize(); } |