Fix polarity-control size (and crash during audition)

Also initialize new polarity-invert with gain 1.0, not inverted.
Don't fade-in.
This commit is contained in:
Robin Gareus 2017-11-03 03:05:54 +01:00
parent f7bca32ab1
commit 0c041dc372
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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 */
}