summaryrefslogtreecommitdiffstats
path: root/src/JackDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-28 16:45:38 +0100
committerDavid Robillard <d@drobilla.net>2020-11-28 17:39:10 +0100
commite2982b5f760a862e091992dc0424b2f78c6b724b (patch)
treea18732fb244aab23317d311622f80902ae38a2da /src/JackDriver.cpp
parent8889e2c2d03a414c9e917a598ebfb213c5a28503 (diff)
downloadpatchage-e2982b5f760a862e091992dc0424b2f78c6b724b.tar.gz
patchage-e2982b5f760a862e091992dc0424b2f78c6b724b.tar.bz2
patchage-e2982b5f760a862e091992dc0424b2f78c6b724b.zip
Rename ModuleType to SignalDirection
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r--src/JackDriver.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index 7f2e4cb..a86eadc 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -155,13 +155,13 @@ JackDriver::create_port_view(Patchage* patchage, const PortID& id)
std::string port_name;
port_names(id, module_name, port_name);
- ModuleType type = ModuleType::input_output;
+ SignalDirection type = SignalDirection::duplex;
if (_app->conf()->get_module_split(module_name,
(jack_flags & JackPortIsTerminal))) {
if (jack_flags & JackPortIsInput) {
- type = ModuleType::input;
+ type = SignalDirection::input;
} else {
- type = ModuleType::output;
+ type = SignalDirection::output;
}
}
@@ -309,13 +309,13 @@ JackDriver::refresh()
client1_name = ports[i];
client1_name = client1_name.substr(0, client1_name.find(':'));
- ModuleType type = ModuleType::input_output;
+ SignalDirection type = SignalDirection::duplex;
if (_app->conf()->get_module_split(
client1_name, (jack_port_flags(port) & JackPortIsTerminal))) {
if (jack_port_flags(port) & JackPortIsInput) {
- type = ModuleType::input;
+ type = SignalDirection::input;
} else {
- type = ModuleType::output;
+ type = SignalDirection::output;
}
}
@@ -346,9 +346,9 @@ JackDriver::refresh()
port1_name = client1_name.substr(colon + 1);
client1_name = client1_name.substr(0, colon);
- const ModuleType port1_type = (jack_port_flags(port) & JackPortIsInput)
- ? ModuleType::input
- : ModuleType::output;
+ const SignalDirection port1_type =
+ (jack_port_flags(port) & JackPortIsInput) ? SignalDirection::input
+ : SignalDirection::output;
const auto port1_id = PortID::jack(ports[i]);
const auto client1_id = ClientID::jack(client1_name);
@@ -367,9 +367,10 @@ JackDriver::refresh()
const auto port2_id = PortID::jack(connected_ports[j]);
const auto client2_id = ClientID::jack(client2_name);
- const ModuleType port2_type = (port1_type == ModuleType::input)
- ? ModuleType::output
- : ModuleType::input;
+ const SignalDirection port2_type =
+ (port1_type == SignalDirection::input)
+ ? SignalDirection::output
+ : SignalDirection::input;
PatchageModule* client2_module =
_app->canvas()->find_module(client2_id, port2_type);