mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Update Latency UI, subscribe to changes
This commit is contained in:
parent
6d7bc4ea30
commit
feab950ea0
2 changed files with 10 additions and 3 deletions
|
|
@ -126,13 +126,17 @@ void
|
|||
LatencyGUI::reset ()
|
||||
{
|
||||
_latent.unset_user_latency ();
|
||||
adjustment.set_value (_latent.signal_latency ());
|
||||
initial_value = std::min (sample_rate, _latent.signal_latency ());
|
||||
adjustment.set_value (initial_value);
|
||||
}
|
||||
|
||||
void
|
||||
LatencyGUI::refresh ()
|
||||
{
|
||||
initial_value = _latent.effective_latency ();
|
||||
/* limit to adjustment range, otherwise LatencyGUI::finish() would
|
||||
* set the adjustment's value as custom-latency
|
||||
*/
|
||||
initial_value = std::min (sample_rate, _latent.effective_latency ());
|
||||
adjustment.set_value (initial_value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue