many changes relating to session construction and audioengine interaction

every session member is now initialized using C++ constructor syntax

session construction reordered to clarify the split(s) between work
where the engine is not relevant and work where is it is. this
split is still not 100% obvious, but is enormously clearer than
previously.

if engine/backend are not running as session is created, and the SR
of the sample rate is known, attempt to force backend to that value.
This commit is contained in:
Paul Davis 2013-09-10 15:41:19 -04:00
parent a6815efb86
commit 209e4bdcae
8 changed files with 392 additions and 302 deletions

View file

@ -37,14 +37,16 @@
class EngineControl : public ArdourDialog {
public:
EngineControl ();
~EngineControl ();
static bool need_setup ();
XMLNode& get_state ();
void set_state (const XMLNode&);
EngineControl ();
~EngineControl ();
static bool need_setup ();
XMLNode& get_state ();
void set_state (const XMLNode&);
void set_desired_sample_rate (uint32_t);
private:
Gtk::Notebook notebook;
@ -153,6 +155,7 @@ class EngineControl : public ArdourDialog {
void control_app_button_clicked ();
void manage_control_app_sensitivity ();
int push_state_to_backend (bool start);
uint32_t _desired_sample_rate;
};
#endif /* __gtk2_ardour_engine_dialog_h__ */