mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
display current buffer size - hopefully w/o breaking ASIO
This commit is contained in:
parent
964c85a061
commit
cc221ea3c3
1 changed files with 5 additions and 1 deletions
|
|
@ -967,7 +967,11 @@ EngineControl::device_changed ()
|
|||
buffer_size_combo.set_sensitive (true);
|
||||
set_popdown_strings (buffer_size_combo, s);
|
||||
|
||||
buffer_size_combo.set_active_text (bufsize_as_string (backend->default_buffer_size(device_name)));
|
||||
uint32_t period = backend->buffer_size();
|
||||
if (0 == period) {
|
||||
period = backend->default_buffer_size(device_name);
|
||||
}
|
||||
buffer_size_combo.set_active_text (bufsize_as_string (period));
|
||||
show_buffer_duration ();
|
||||
} else {
|
||||
buffer_size_combo.set_sensitive (false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue