Fix setting pretty-names when engine is restarted

port-meta-data depends on the audioengine backend/device
settings. Those are only available after the engine is started,
not from within the backend's _start() method.

This is is only relevant for callback based backends.

Backends with a blocking process thread explicitly emit
port-manager callbacks there before entering the main loop.
This commit is contained in:
Robin Gareus 2023-06-02 00:28:43 +02:00
parent 6640a4afb3
commit c56313cea0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -703,9 +703,8 @@ CoreAudioBackend::_start (bool for_latency_measurement)
engine.reconnect_ports ();
// force an initial registration_callback() & latency re-compute
// force an initial registration_callback() & latency re-compute
_port_change_flag.store (1);
pre_process ();
_dsp_load_calc.reset ();
// all systems go.

View File

@ -702,6 +702,7 @@ PortAudioBackend::_start (bool for_latency_measurement)
stop ();
return ProcessThreadStartError;
}
_port_change_flag.store (1);
}
return NoError;