mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
remove duplicate check (same is done few lines above)
This commit is contained in:
parent
a49284a909
commit
e9b0b4bcf0
1 changed files with 0 additions and 20 deletions
|
|
@ -2310,26 +2310,6 @@ EngineControl::push_state_to_backend (bool start)
|
|||
restart_required = false;
|
||||
}
|
||||
|
||||
if (was_running) {
|
||||
|
||||
if (!change_driver && !change_device && !change_channels && !change_latency && !change_midi) {
|
||||
/* no changes in any parameters that absolutely require a
|
||||
* restart, so check those that might be changeable without a
|
||||
* restart
|
||||
*/
|
||||
|
||||
if (change_rate && !backend->can_change_sample_rate_when_running()) {
|
||||
/* can't do this while running ... */
|
||||
restart_required = true;
|
||||
}
|
||||
|
||||
if (change_bufsize && !backend->can_change_buffer_size_when_running()) {
|
||||
/* can't do this while running ... */
|
||||
restart_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (was_running) {
|
||||
if (restart_required) {
|
||||
if (ARDOUR::AudioEngine::instance()->stop()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue