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 ();
26 bool was_used() const { return _used
; }
27 XMLNode
& get_state ();
28 void set_state (const XMLNode
&);
31 Gtk::Adjustment periods_adjustment
;
32 Gtk::SpinButton periods_spinner
;
33 Gtk::Adjustment priority_adjustment
;
34 Gtk::SpinButton priority_spinner
;
35 Gtk::Adjustment ports_adjustment
;
36 Gtk::SpinButton ports_spinner
;
37 Gtk::SpinButton input_channels
;
38 Gtk::SpinButton output_channels
;
39 Gtk::SpinButton input_latency
;
40 Gtk::SpinButton output_latency
;
41 Gtk::Label latency_label
;
43 Gtk::CheckButton realtime_button
;
44 Gtk::CheckButton no_memory_lock_button
;
45 Gtk::CheckButton unlock_memory_button
;
46 Gtk::CheckButton soft_mode_button
;
47 Gtk::CheckButton monitor_button
;
48 Gtk::CheckButton force16bit_button
;
49 Gtk::CheckButton hw_monitor_button
;
50 Gtk::CheckButton hw_meter_button
;
51 Gtk::CheckButton verbose_output_button
;
53 Gtk::Button start_button
;
54 Gtk::Button stop_button
;
55 Gtk::HButtonBox button_box
;
57 Gtk::ComboBoxText sample_rate_combo
;
58 Gtk::ComboBoxText period_size_combo
;
60 Gtk::ComboBoxText preset_combo
;
61 Gtk::ComboBoxText serverpath_combo
;
62 Gtk::ComboBoxText driver_combo
;
63 Gtk::ComboBoxText interface_combo
;
64 Gtk::ComboBoxText timeout_combo
;
65 Gtk::ComboBoxText dither_mode_combo
;
66 Gtk::ComboBoxText audio_mode_combo
;
67 Gtk::ComboBoxText input_device_combo
;
68 Gtk::ComboBoxText output_device_combo
;
70 Gtk::Table basic_packer
;
71 Gtk::Table options_packer
;
72 Gtk::Table device_packer
;
74 Gtk::HBox options_hbox
;
75 Gtk::HBox device_hbox
;
76 Gtk::Notebook notebook
;
80 void realtime_changed ();
81 void driver_changed ();
82 void build_command_line (std::vector
<std::string
>&);
84 std::map
<std::string
,std::vector
<std::string
> > devices
;
85 std::vector
<std::string
> backend_devs
;
86 void enumerate_devices (const std::string
& driver
);
89 std::vector
<std::string
> enumerate_coreaudio_devices ();
91 std::vector
<std::string
> enumerate_alsa_devices ();
92 std::vector
<std::string
> enumerate_oss_devices ();
93 std::vector
<std::string
> enumerate_netjack_devices ();
94 std::vector
<std::string
> enumerate_freebob_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
;
103 void find_jack_servers (std::vector
<std::string
>&);
104 std::string
get_device_name (const std::string
& driver
, const std::string
& human_readable_name
);
107 #endif /* __gtk2_ardour_engine_dialog_h__ */