1 #ifndef __gtk2_ardour_engine_dialog_h__
2 #define __gtk2_ardour_engine_dialog_h__
8 #include <gtkmm/checkbutton.h>
9 #include <gtkmm/spinbutton.h>
10 #include <gtkmm/notebook.h>
11 #include <gtkmm/comboboxtext.h>
12 #include <gtkmm/table.h>
13 #include <gtkmm/expander.h>
14 #include <gtkmm/box.h>
15 #include <gtkmm/buttonbox.h>
16 #include <gtkmm/button.h>
18 class EngineControl
: public Gtk::VBox
{
23 static bool engine_running ();
25 void discover_servers ();
27 bool was_used() const { return _used
; }
28 XMLNode
& get_state ();
29 void set_state (const XMLNode
&);
32 Gtk::Adjustment periods_adjustment
;
33 Gtk::SpinButton periods_spinner
;
34 Gtk::Adjustment priority_adjustment
;
35 Gtk::SpinButton priority_spinner
;
36 Gtk::Adjustment ports_adjustment
;
37 Gtk::SpinButton ports_spinner
;
38 Gtk::SpinButton input_channels
;
39 Gtk::SpinButton output_channels
;
40 Gtk::SpinButton input_latency
;
41 Gtk::SpinButton output_latency
;
42 Gtk::Label latency_label
;
44 Gtk::CheckButton realtime_button
;
45 Gtk::CheckButton no_memory_lock_button
;
46 Gtk::CheckButton unlock_memory_button
;
47 Gtk::CheckButton soft_mode_button
;
48 Gtk::CheckButton monitor_button
;
49 Gtk::CheckButton force16bit_button
;
50 Gtk::CheckButton hw_monitor_button
;
51 Gtk::CheckButton hw_meter_button
;
52 Gtk::CheckButton verbose_output_button
;
54 Gtk::Button start_button
;
55 Gtk::Button stop_button
;
56 Gtk::HButtonBox button_box
;
58 Gtk::ComboBoxText sample_rate_combo
;
59 Gtk::ComboBoxText period_size_combo
;
61 Gtk::ComboBoxText preset_combo
;
62 Gtk::ComboBoxText serverpath_combo
;
63 Gtk::ComboBoxText driver_combo
;
64 Gtk::ComboBoxText interface_combo
;
65 Gtk::ComboBoxText timeout_combo
;
66 Gtk::ComboBoxText dither_mode_combo
;
67 Gtk::ComboBoxText audio_mode_combo
;
68 Gtk::ComboBoxText input_device_combo
;
69 Gtk::ComboBoxText output_device_combo
;
71 Gtk::Table basic_packer
;
72 Gtk::Table options_packer
;
73 Gtk::Table device_packer
;
75 Gtk::HBox options_hbox
;
76 Gtk::HBox device_hbox
;
77 Gtk::Notebook notebook
;
81 void realtime_changed ();
82 void driver_changed ();
83 void build_command_line (std::vector
<std::string
>&);
85 std::map
<std::string
,std::vector
<std::string
> > devices
;
86 std::vector
<std::string
> backend_devs
;
87 void enumerate_devices (const string
& driver
);
90 std::vector
<std::string
> enumerate_coreaudio_devices ();
92 std::vector
<std::string
> enumerate_alsa_devices ();
93 std::vector
<std::string
> enumerate_oss_devices ();
94 std::vector
<std::string
> enumerate_netjack_devices ();
95 std::vector
<std::string
> enumerate_ffado_devices ();
96 std::vector
<std::string
> enumerate_dummy_devices ();
99 void redisplay_latency ();
101 void audio_mode_changed ();
102 std::vector
<std::string
> server_strings
;
104 void find_jack_servers (std::vector
<std::string
>&);
105 std::string
get_device_name (const std::string
& driver
, const std::string
& human_readable_name
);
108 #endif /* __gtk2_ardour_engine_dialog_h__ */