diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-11 22:07:47 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-11 22:07:47 +0000 |
commit | f7f9d6fdc40248b190ec9c6e1a886261d55777ae (patch) | |
tree | 080723e9dc35a66013b37acbafc67a6afa929302 /gtk2_ardour/engine_dialog.h | |
parent | aa1f736a651376534acaa2268b65d42a3786fff7 (diff) |
merge from 2.0-ongoing by hand, minus key binding editor
git-svn-id: svn://localhost/ardour2/trunk@2539 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r-- | gtk2_ardour/engine_dialog.h | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h new file mode 100644 index 0000000000..925d12acbb --- /dev/null +++ b/gtk2_ardour/engine_dialog.h @@ -0,0 +1,106 @@ +#ifndef __gtk2_ardour_engine_dialog_h__ +#define __gtk2_ardour_engine_dialog_h__ + +#include <map> +#include <vector> +#include <string> + +#include <gtkmm/checkbutton.h> +#include <gtkmm/spinbutton.h> +#include <gtkmm/notebook.h> +#include <gtkmm/comboboxtext.h> +#include <gtkmm/table.h> +#include <gtkmm/expander.h> +#include <gtkmm/box.h> +#include <gtkmm/buttonbox.h> +#include <gtkmm/button.h> + +class EngineControl : public Gtk::VBox { + public: + EngineControl (); + ~EngineControl (); + + static bool engine_running (); + int setup_engine (); + + bool was_used() const { return _used; } + XMLNode& get_state (); + void set_state (const XMLNode&); + + private: + Gtk::Adjustment periods_adjustment; + Gtk::SpinButton periods_spinner; + Gtk::Adjustment priority_adjustment; + Gtk::SpinButton priority_spinner; + Gtk::Adjustment ports_adjustment; + Gtk::SpinButton ports_spinner; + Gtk::SpinButton input_channels; + Gtk::SpinButton output_channels; + Gtk::SpinButton input_latency; + Gtk::SpinButton output_latency; + Gtk::Label latency_label; + + Gtk::CheckButton realtime_button; + Gtk::CheckButton no_memory_lock_button; + Gtk::CheckButton unlock_memory_button; + Gtk::CheckButton soft_mode_button; + Gtk::CheckButton monitor_button; + Gtk::CheckButton force16bit_button; + Gtk::CheckButton hw_monitor_button; + Gtk::CheckButton hw_meter_button; + Gtk::CheckButton verbose_output_button; + + Gtk::Button start_button; + Gtk::Button stop_button; + Gtk::HButtonBox button_box; + + Gtk::ComboBoxText sample_rate_combo; + Gtk::ComboBoxText period_size_combo; + + Gtk::ComboBoxText preset_combo; + Gtk::ComboBoxText serverpath_combo; + Gtk::ComboBoxText driver_combo; + Gtk::ComboBoxText interface_combo; + Gtk::ComboBoxText timeout_combo; + Gtk::ComboBoxText dither_mode_combo; + Gtk::ComboBoxText audio_mode_combo; + Gtk::ComboBoxText input_device_combo; + Gtk::ComboBoxText output_device_combo; + + Gtk::Table basic_packer; + Gtk::Table options_packer; + Gtk::Table device_packer; + Gtk::HBox basic_hbox; + Gtk::HBox options_hbox; + Gtk::HBox device_hbox; + Gtk::Notebook notebook; + + bool _used; + + void realtime_changed (); + void driver_changed (); + void build_command_line (std::vector<std::string>&); + + std::map<std::string,std::vector<std::string> > devices; + std::vector<std::string> backend_devs; + void enumerate_devices (); + +#ifdef __APPLE__ + std::vector<std::string> enumerate_coreaudio_devices (); +#else + std::vector<std::string> enumerate_alsa_devices (); + std::vector<std::string> enumerate_oss_devices (); + std::vector<std::string> enumerate_netjack_devices (); + std::vector<std::string> enumerate_ffado_devices (); + std::vector<std::string> enumerate_dummy_devices (); +#endif + + void redisplay_latency (); + uint32_t get_rate(); + void audio_mode_changed (); + std::vector<std::string> server_strings; + void find_jack_servers (std::vector<std::string>&); + std::string get_device_name (const std::string& driver, const std::string& human_readable_name); +}; + +#endif /* __gtk2_ardour_engine_dialog_h__ */ |