summaryrefslogtreecommitdiff
path: root/libs/ardour/monitor_processor.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-01 16:50:12 +0000
committerDavid Robillard <d@drobilla.net>2011-06-01 16:50:12 +0000
commita473d630eb165272992e90f8d854b1d66ec0be63 (patch)
treed0d027d4e53cb3883f4098c4736651d0ae89c19a /libs/ardour/monitor_processor.cc
parenta46cea06e29bfdb18e0199a665caf5a34d388968 (diff)
Fix broken whitespace. I'd apologize for the compile times if it was my fault :D
git-svn-id: svn://localhost/ardour2/branches/3.0@9654 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/monitor_processor.cc')
-rw-r--r--libs/ardour/monitor_processor.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/libs/ardour/monitor_processor.cc b/libs/ardour/monitor_processor.cc
index 7ec2a8ef4c..57d4a57c74 100644
--- a/libs/ardour/monitor_processor.cc
+++ b/libs/ardour/monitor_processor.cc
@@ -34,11 +34,11 @@ MonitorProcessor::MonitorProcessor (Session& s)
, _dim_all_ptr (new MPControl<bool> (false, _("monitor dim"), Controllable::Toggle))
, _cut_all_ptr (new MPControl<bool> (false, _("monitor cut"), Controllable::Toggle))
, _mono_ptr (new MPControl<bool> (false, _("monitor mono"), Controllable::Toggle))
- , _dim_level_ptr (new MPControl<volatile gain_t>
+ , _dim_level_ptr (new MPControl<volatile gain_t>
(0.2, _("monitor mono"), Controllable::Flag (0), 0.0f, 1.0f))
- , _solo_boost_level_ptr (new MPControl<volatile gain_t>
+ , _solo_boost_level_ptr (new MPControl<volatile gain_t>
(1.0, _("monitor mono"), Controllable::Flag (0), 1.0f, 3.0f))
-
+
, _dim_all_control (_dim_all_ptr)
, _cut_all_control (_cut_all_ptr)
, _mono_control (_mono_ptr)
@@ -108,7 +108,7 @@ MonitorProcessor::set_state (const XMLNode& node, int version)
<< endmsg;
return -1;
}
-
+
allocate_channels (atoi (prop->value()));
if ((prop = node.property (X_("dim-level"))) != 0) {
@@ -150,7 +150,7 @@ MonitorProcessor::set_state (const XMLNode& node, int version)
<< endmsg;
return -1;
}
-
+
if (chn >= _channels.size()) {
error << string_compose (X_("programming error: %1"), X_("MonitorProcessor XML settings has an illegal channel count"))
<< endmsg;
@@ -185,7 +185,7 @@ MonitorProcessor::set_state (const XMLNode& node, int version)
}
}
}
-
+
/* reset solo cnt */
solo_cnt = 0;
@@ -195,7 +195,7 @@ MonitorProcessor::set_state (const XMLNode& node, int version)
solo_cnt++;
}
}
-
+
return 0;
}
@@ -208,7 +208,7 @@ MonitorProcessor::state (bool full)
/* this replaces any existing "type" property */
node.add_property (X_("type"), X_("monitor"));
-
+
snprintf (buf, sizeof(buf), "%.12g", _dim_level.val());
node.add_property (X_("dim-level"), buf);
@@ -218,7 +218,7 @@ MonitorProcessor::state (bool full)
node.add_property (X_("cut-all"), (_cut_all ? "yes" : "no"));
node.add_property (X_("dim-all"), (_dim_all ? "yes" : "no"));
node.add_property (X_("mono"), (_mono ? "yes" : "no"));
-
+
uint32_t limit = _channels.size();
snprintf (buf, sizeof (buf), "%u", limit);
@@ -232,12 +232,12 @@ MonitorProcessor::state (bool full)
snprintf (buf, sizeof (buf), "%u", chn);
chn_node->add_property ("id", buf);
-
+
chn_node->add_property (X_("cut"), (*x)->cut == 1.0f ? "no" : "yes");
chn_node->add_property (X_("invert"), (*x)->polarity == 1.0f ? "no" : "yes");
chn_node->add_property (X_("dim"), (*x)->dim ? "yes" : "no");
chn_node->add_property (X_("solo"), (*x)->soloed ? "yes" : "no");
-
+
node.add_child_nocopy (*chn_node);
}
@@ -331,7 +331,7 @@ MonitorProcessor::configure_io (ChanCount in, ChanCount out)
return Processor::configure_io (in, out);
}
-bool
+bool
MonitorProcessor::can_support_io_configuration (const ChanCount& in, ChanCount& out) const
{
out = in;
@@ -346,7 +346,7 @@ MonitorProcessor::set_polarity (uint32_t chn, bool invert)
} else {
_channels[chn]->polarity = 1.0f;
}
-}
+}
void
MonitorProcessor::set_dim (uint32_t chn, bool yn)
@@ -369,7 +369,7 @@ MonitorProcessor::set_solo (uint32_t chn, bool solo)
{
if (solo != _channels[chn]->soloed) {
_channels[chn]->soloed = solo;
-
+
if (solo) {
solo_cnt++;
} else {
@@ -404,27 +404,27 @@ MonitorProcessor::display_to_user () const
return false;
}
-bool
+bool
MonitorProcessor::soloed (uint32_t chn) const
{
return _channels[chn]->soloed;
}
-bool
+bool
MonitorProcessor::inverted (uint32_t chn) const
{
return _channels[chn]->polarity < 0.0f;
}
-bool
+bool
MonitorProcessor::cut (uint32_t chn) const
{
return _channels[chn]->cut == 0.0f;
}
-bool
+bool
MonitorProcessor::dimmed (uint32_t chn) const
{
return _channels[chn]->dim;
@@ -490,12 +490,12 @@ MonitorProcessor::ChannelRecord::ChannelRecord (uint32_t chn)
, dim_ptr (new MPControl<bool> (false, string_compose (_("dim control"), chn), PBD::Controllable::Toggle))
, polarity_ptr (new MPControl<gain_t> (1.0, string_compose (_("polarity control"), chn), PBD::Controllable::Toggle))
, soloed_ptr (new MPControl<bool> (false, string_compose (_("solo control"), chn), PBD::Controllable::Toggle))
-
+
, cut_control (cut_ptr)
, dim_control (dim_ptr)
, polarity_control (polarity_ptr)
, soloed_control (soloed_ptr)
-
+
, cut (*cut_ptr)
, dim (*dim_ptr)
, polarity (*polarity_ptr)