mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Prevent engine dialog from changing devices when the engine is running
This fixes an issue with excessive "sample rate mismatches" warnings via device_changed -> set_in/output_device_name -> set_sample_rate
This commit is contained in:
parent
86d9bcf525
commit
65317ef0e0
1 changed files with 3 additions and 1 deletions
|
|
@ -1537,7 +1537,9 @@ EngineControl::device_changed ()
|
|||
}
|
||||
|
||||
//the device name must be set FIRST so ASIO can populate buffersizes and the control panel button
|
||||
if (backend->use_separate_input_and_output_devices ()) {
|
||||
if (ARDOUR::AudioEngine::instance ()->running ()) {
|
||||
assert (!queue_device_changed);
|
||||
} else if (backend->use_separate_input_and_output_devices ()) {
|
||||
backend->set_input_device_name (device_name_in);
|
||||
backend->set_output_device_name (device_name_out);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue