summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-11-03 03:05:54 +0100
committerRobin Gareus <robin@gareus.org>2017-11-03 03:06:22 +0100
commit0c041dc372ce5e1629da6ff158750945966888be (patch)
tree49947ffde25b1ecdb95a816141c961aaef9a58b5 /libs
parentf7bca32ab10d1e45128ad0ef82bc4995beffabc6 (diff)
Fix polarity-control size (and crash during audition)
Also initialize new polarity-invert with gain 1.0, not inverted. Don't fade-in.
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/polarity_processor.cc3
-rw-r--r--libs/ardour/route.cc1
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/polarity_processor.cc b/libs/ardour/polarity_processor.cc
index 42231d9d27..35d74a5795 100644
--- a/libs/ardour/polarity_processor.cc
+++ b/libs/ardour/polarity_processor.cc
@@ -47,7 +47,8 @@ PolarityProcessor::configure_io (ChanCount in, ChanCount out)
return false;
}
- _current_gain.resize (in.n_audio (), 0.f);
+ _control->resize (in.n_audio ());
+ _current_gain.resize (in.n_audio (), 1.f);
return Processor::configure_io (in, out);
}
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 2d5857b202..b5311dc4fc 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -3452,7 +3452,6 @@ Route::input_change_handler (IOChange change, void * /*src*/)
contains ConfigurationChanged
*/
configure_processors (0);
- _phase_control->resize (_input->n_ports().n_audio ());
io_changed (); /* EMIT SIGNAL */
}