summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-09 21:23:12 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-09 21:23:12 -0400
commit2a8923402776a4542de5d8b79cb101b1c997c36d (patch)
treedd98c854daa2994f5703cafb2115a9ccade6fbc1 /gtk2_ardour/engine_dialog.h
parent29c9d94dbe76f94e8126550fcb9513182b17fbb5 (diff)
move control app launching back into audio backend to allow ASIO/CoreAudio model to work; push initial state of AMS dialog to backend
Issues remain with the basic model of the AMS dialog - when is newly chosen state pushed into the backend (which can then modify the control app button sensitivity. This is a special problem for this button because APIs like ASIO and CoreAudio probably don't allow us to launch a control app for an arbitrary device, but only one actually in use. In this sense it is different from properties like available buffer size etc, where we can typically query without actually using the device.
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r--gtk2_ardour/engine_dialog.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h
index 8f5a615228..cdeb18a2c7 100644
--- a/gtk2_ardour/engine_dialog.h
+++ b/gtk2_ardour/engine_dialog.h
@@ -41,7 +41,6 @@ class EngineControl : public ArdourDialog {
~EngineControl ();
static bool need_setup ();
- int setup_engine (bool start);
XMLNode& get_state ();
void set_state (const XMLNode&);
@@ -97,8 +96,7 @@ class EngineControl : public ArdourDialog {
Gtk::VBox basic_vbox;
Gtk::HBox midi_hbox;
- sigc::connection sr_connection;
- sigc::connection bs_connection;
+ uint32_t ignore_changes;
static bool engine_running ();
@@ -144,7 +142,7 @@ class EngineControl : public ArdourDialog {
const std::string& driver,
const std::string& device);
State* get_current_state ();
- void maybe_set_state ();
+ void maybe_display_saved_state ();
void save_state ();
static bool print_channel_count (Gtk::SpinButton*);
@@ -154,6 +152,7 @@ class EngineControl : public ArdourDialog {
void on_response (int);
void control_app_button_clicked ();
void manage_control_app_sensitivity ();
+ int push_state_to_backend (bool start);
};
#endif /* __gtk2_ardour_engine_dialog_h__ */