diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-08-11 13:02:25 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-08-11 14:00:57 +1000 |
commit | a8daa369013c272491971765a365acb90b08d32d (patch) | |
tree | 3733ccff6addea44dbb5bd60d4328db87eadb530 /gtk2_ardour/engine_dialog.h | |
parent | e8b2d7a85ba4f747a6752b708744f9a27c4c80e5 (diff) |
Use a union of all sample rates and buffer sizes for all devices in EngineControl
Using just the input device doesn't work in the case that the input device is
an invalid/None device
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r-- | gtk2_ardour/engine_dialog.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h index 7bc0b59a30..c507b13968 100644 --- a/gtk2_ardour/engine_dialog.h +++ b/gtk2_ardour/engine_dialog.h @@ -138,6 +138,9 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList { std::string bufsize_as_string (uint32_t); + std::vector<float> get_sample_rates_for_all_devices (); + std::vector<uint32_t> get_buffer_sizes_for_all_devices (); + float get_rate() const; uint32_t get_buffer_size() const; uint32_t get_input_channels() const; @@ -158,8 +161,8 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList { bool set_device_popdown_strings (); bool set_input_device_popdown_strings (); bool set_output_device_popdown_strings (); - void set_samplerate_popdown_strings (const std::string& dev_name); - void set_buffersize_popdown_strings (const std::string& dev_name); + void set_samplerate_popdown_strings (); + void set_buffersize_popdown_strings (); void list_devices (); void show_buffer_duration (); |