mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
retain desired samplerate when switching backends
This commit is contained in:
parent
4e693c1830
commit
46d2b03af0
1 changed files with 3 additions and 1 deletions
|
|
@ -2235,7 +2235,9 @@ EngineControl::set_current_state (const State& state)
|
||||||
device_combo.set_active_text (state->device);
|
device_combo.set_active_text (state->device);
|
||||||
input_device_combo.set_active_text (state->input_device);
|
input_device_combo.set_active_text (state->input_device);
|
||||||
output_device_combo.set_active_text (state->output_device);
|
output_device_combo.set_active_text (state->output_device);
|
||||||
sample_rate_combo.set_active_text (rate_as_string (state->sample_rate));
|
if (!_desired_sample_rate) {
|
||||||
|
sample_rate_combo.set_active_text (rate_as_string (state->sample_rate));
|
||||||
|
}
|
||||||
set_active_text_if_present (buffer_size_combo, bufsize_as_string (state->buffer_size));
|
set_active_text_if_present (buffer_size_combo, bufsize_as_string (state->buffer_size));
|
||||||
set_active_text_if_present (nperiods_combo, nperiods_as_string (state->n_periods));
|
set_active_text_if_present (nperiods_combo, nperiods_as_string (state->n_periods));
|
||||||
input_latency.set_value (state->input_latency);
|
input_latency.set_value (state->input_latency);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue