summaryrefslogtreecommitdiff
path: root/libs/ardour/delivery.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-07-22 15:17:09 +0200
committerRobin Gareus <robin@gareus.org>2017-07-22 15:17:09 +0200
commit48ec6dd5c43cfb1f185fcc59941654e20de80f84 (patch)
tree2616facca110a2e6dc775b4dc9a2cb58ff59c7fc /libs/ardour/delivery.cc
parentfba2c2467da8965e49c3c468431e8c00c8b60771 (diff)
NO-OP: whitespace
Diffstat (limited to 'libs/ardour/delivery.cc')
-rw-r--r--libs/ardour/delivery.cc75
1 files changed, 37 insertions, 38 deletions
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc
index a4cc7885d8..682c9fb7c4 100644
--- a/libs/ardour/delivery.cc
+++ b/libs/ardour/delivery.cc
@@ -506,25 +506,25 @@ Delivery::non_realtime_transport_stop (framepos_t now, bool flush)
_panshell->pannable()->non_realtime_transport_stop (now, flush);
}
- if (_output) {
- PortSet& ports (_output->ports());
+ if (_output) {
+ PortSet& ports (_output->ports());
- for (PortSet::iterator i = ports.begin(); i != ports.end(); ++i) {
- i->transport_stopped ();
- }
- }
+ for (PortSet::iterator i = ports.begin(); i != ports.end(); ++i) {
+ i->transport_stopped ();
+ }
+ }
}
void
Delivery::realtime_locate ()
{
if (_output) {
- PortSet& ports (_output->ports());
+ PortSet& ports (_output->ports());
- for (PortSet::iterator i = ports.begin(); i != ports.end(); ++i) {
- i->realtime_locate ();
- }
- }
+ for (PortSet::iterator i = ports.begin(); i != ports.end(); ++i) {
+ i->realtime_locate ();
+ }
+ }
}
gain_t
@@ -544,38 +544,37 @@ Delivery::target_gain ()
return GAIN_COEFF_ZERO;
}
- MuteMaster::MutePoint mp = MuteMaster::Main; // stupid gcc uninit warning
-
- switch (_role) {
- case Main:
- mp = MuteMaster::Main;
- break;
- case Listen:
- mp = MuteMaster::Listen;
- break;
- case Send:
- case Insert:
- case Aux:
- if (_pre_fader) {
- mp = MuteMaster::PreFader;
- } else {
- mp = MuteMaster::PostFader;
- }
- break;
- }
+ MuteMaster::MutePoint mp = MuteMaster::Main; // stupid gcc uninit warning
- gain_t desired_gain = _mute_master->mute_gain_at (mp);
+ switch (_role) {
+ case Main:
+ mp = MuteMaster::Main;
+ break;
+ case Listen:
+ mp = MuteMaster::Listen;
+ break;
+ case Send:
+ case Insert:
+ case Aux:
+ if (_pre_fader) {
+ mp = MuteMaster::PreFader;
+ } else {
+ mp = MuteMaster::PostFader;
+ }
+ break;
+ }
- if (_role == Listen && _session.monitor_out() && !_session.listening()) {
+ gain_t desired_gain = _mute_master->mute_gain_at (mp);
- /* nobody is soloed, and this delivery is a listen-send to the
- control/monitor/listen bus, we should be silent since
- it gets its signal from the master out.
- */
+ if (_role == Listen && _session.monitor_out() && !_session.listening()) {
- desired_gain = GAIN_COEFF_ZERO;
+ /* nobody is soloed, and this delivery is a listen-send to the
+ * control/monitor/listen bus, we should be silent since
+ * it gets its signal from the master out.
+ */
- }
+ desired_gain = GAIN_COEFF_ZERO;
+ }
return desired_gain;
}