mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
Change/improve enum as IN and OUT are defined via windows.h
This commit is contained in:
parent
029c530203
commit
32f4d7787e
2 changed files with 7 additions and 7 deletions
|
|
@ -47,7 +47,7 @@ GlobalPortMatrix::setup_ports (int dim)
|
||||||
}
|
}
|
||||||
|
|
||||||
_ports[dim].suspend_signals ();
|
_ports[dim].suspend_signals ();
|
||||||
_ports[dim].gather (_session, type(), dim == IN, false, show_only_bundles ());
|
_ports[dim].gather (_session, type(), dim == FLOW_IN, false, show_only_bundles ());
|
||||||
_ports[dim].resume_signals ();
|
_ports[dim].resume_signals ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,8 +58,8 @@ GlobalPortMatrix::set_state (BundleChannel c[2], bool s)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bundle::PortList const & in_ports = c[IN].bundle->channel_ports (c[IN].channel);
|
Bundle::PortList const & in_ports = c[FLOW_IN].bundle->channel_ports (c[FLOW_IN].channel);
|
||||||
Bundle::PortList const & out_ports = c[OUT].bundle->channel_ports (c[OUT].channel);
|
Bundle::PortList const & out_ports = c[FLOW_OUT].bundle->channel_ports (c[FLOW_OUT].channel);
|
||||||
|
|
||||||
for (Bundle::PortList::const_iterator i = in_ports.begin(); i != in_ports.end(); ++i) {
|
for (Bundle::PortList::const_iterator i = in_ports.begin(); i != in_ports.end(); ++i) {
|
||||||
for (Bundle::PortList::const_iterator j = out_ports.begin(); j != out_ports.end(); ++j) {
|
for (Bundle::PortList::const_iterator j = out_ports.begin(); j != out_ports.end(); ++j) {
|
||||||
|
|
@ -102,8 +102,8 @@ GlobalPortMatrix::get_state (BundleChannel c[2]) const
|
||||||
return PortMatrixNode::NOT_ASSOCIATED;
|
return PortMatrixNode::NOT_ASSOCIATED;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bundle::PortList const & in_ports = c[IN].bundle->channel_ports (c[IN].channel);
|
Bundle::PortList const & in_ports = c[FLOW_IN].bundle->channel_ports (c[FLOW_IN].channel);
|
||||||
Bundle::PortList const & out_ports = c[OUT].bundle->channel_ports (c[OUT].channel);
|
Bundle::PortList const & out_ports = c[FLOW_OUT].bundle->channel_ports (c[FLOW_OUT].channel);
|
||||||
if (in_ports.empty() || out_ports.empty()) {
|
if (in_ports.empty() || out_ports.empty()) {
|
||||||
/* we're looking at a bundle with no parts associated with this channel,
|
/* we're looking at a bundle with no parts associated with this channel,
|
||||||
so nothing to connect */
|
so nothing to connect */
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@ public:
|
||||||
private:
|
private:
|
||||||
/* see PortMatrix: signal flow from 0 to 1 (out to in) */
|
/* see PortMatrix: signal flow from 0 to 1 (out to in) */
|
||||||
enum {
|
enum {
|
||||||
OUT = 0,
|
FLOW_OUT = 0,
|
||||||
IN = 1,
|
FLOW_IN = 1,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue