mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
[Summary] Fixed issue with device hanging when buffer size is updated on Windows
[Details] Removed redundant actions which caused loop back effenct with device thread. [git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 465786]
This commit is contained in:
parent
ab061510bd
commit
f777e4631d
1 changed files with 4 additions and 18 deletions
|
|
@ -1167,30 +1167,16 @@ EngineStateController::get_physical_midi_output_states (std::vector<PortState>&
|
|||
void
|
||||
EngineStateController::_on_sample_rate_change(framecnt_t new_sample_rate)
|
||||
{
|
||||
// validate the change
|
||||
if (set_new_sample_rate_in_controller(new_sample_rate)) {
|
||||
SampleRateChanged(); // emit a signal if successful
|
||||
|
||||
} else {
|
||||
// restore previous state in backend
|
||||
push_current_state_to_backend(false);
|
||||
}
|
||||
_current_state->sample_rate = new_sample_rate;
|
||||
SampleRateChanged(); // emit a signal
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
EngineStateController::_on_buffer_size_change(pframes_t new_buffer_size)
|
||||
{
|
||||
// validate the change
|
||||
if (set_new_buffer_size_in_controller(new_buffer_size) ) {
|
||||
BufferSizeChanged(); // emit a signal if successful
|
||||
|
||||
} else {
|
||||
// restore previous state in backend
|
||||
push_current_state_to_backend(false);
|
||||
}
|
||||
|
||||
|
||||
_current_state->buffer_size = new_buffer_size;
|
||||
BufferSizeChanged(); // emit a signal
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue