Cont'd work on implicit solo restore

This is an update to b90f057e6e, allowing processors
to configure when ports change. Fixes loading old sessions with
variable i/o polarity invert.
This commit is contained in:
Robin Gareus 2020-10-29 19:55:14 +01:00
parent b90f057e6e
commit 1219271321
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -3678,7 +3678,7 @@ Route::realtime_handle_transport_stopped ()
void
Route::input_change_handler (IOChange change, void * /*src*/)
{
if (_initial_io_setup || _session.loading ()) {
if (_session.loading ()) {
return;
}
@ -3690,6 +3690,10 @@ Route::input_change_handler (IOChange change, void * /*src*/)
io_changed (); /* EMIT SIGNAL */
}
if (_initial_io_setup) {
return;
}
if (_solo_control->soloed_by_others_upstream() || _solo_isolate_control->solo_isolated_by_upstream()) {
int sbou = 0;
int ibou = 0;
@ -3757,7 +3761,7 @@ Route::input_change_handler (IOChange change, void * /*src*/)
void
Route::output_change_handler (IOChange change, void * /*src*/)
{
if (_initial_io_setup || _session.loading ()) {
if (_initial_io_setup) {
return;
}
@ -3774,6 +3778,10 @@ Route::output_change_handler (IOChange change, void * /*src*/)
io_changed (); /* EMIT SIGNAL */
}
if (_session.loading ()) {
return;
}
if ((change.type & IOChange::ConnectionsChanged)) {
/* do this ONLY if connections have changed. Configuration