diff options
-rw-r--r-- | src/AlsaDriver.cpp | 4 | ||||
-rw-r--r-- | src/JackDriver.cpp | 13 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index 2ddb2b6..1e5490b 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -251,7 +251,6 @@ AlsaDriver::create_port_view_internal( bool is_input = false; bool is_duplex = false; bool is_application = true; - bool need_refresh = false; int caps = snd_seq_port_info_get_capability(pinfo); int type = snd_seq_port_info_get_type(pinfo); @@ -272,7 +271,6 @@ AlsaDriver::create_port_view_internal( if (is_duplex) { split = true; if (!_app->state_manager()->get_module_split(client_name, !is_application)) { - need_refresh = true; _app->state_manager()->set_module_split(client_name, true); } } else { @@ -516,7 +514,6 @@ AlsaDriver::_refresh_main() } int caps = 0; - int type = 0; snd_seq_client_info_t* cinfo; snd_seq_client_info_alloca(&cinfo); @@ -545,7 +542,6 @@ AlsaDriver::_refresh_main() snd_seq_get_any_client_info(_seq, ev->data.addr.client, cinfo); snd_seq_get_any_port_info(_seq, ev->data.addr.client, ev->data.addr.port, pinfo); caps = snd_seq_port_info_get_capability(pinfo); - type = snd_seq_port_info_get_type(pinfo); if (!ignore(ev->data.addr)) _events.push(PatchageEvent(PatchageEvent::PORT_CREATION, diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 68aa612..3897bb6 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -254,19 +254,6 @@ JackDriver::refresh() _app->canvas()->add_module(client1_name, m); } - // FIXME: leak? jack docs don't say - const char* const type_str = jack_port_type(port); - PortType port_type; - - if (!strcmp(type_str, JACK_DEFAULT_AUDIO_TYPE)) { - port_type = JACK_AUDIO; - } else if (!strcmp(type_str, JACK_DEFAULT_MIDI_TYPE)) { - port_type = JACK_MIDI; - } else { - Raul::warn << ports[i] << " has unknown type \'" << type_str << "\'" << endl; - continue; - } - if (!m->get_port(jack_port_short_name(port))) create_port(*m, port, PortID()); } |