summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-01-24 15:55:19 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-01-24 15:56:37 -0700
commita4168293790e903d56838ac3815b29a405d493f1 (patch)
treee28cf6356485c20cbc389e068a043b32881dddcf /gtk2_ardour/engine_dialog.cc
parentf2ee30c0ec8b589b1951fe56b71ce05fadcd69b7 (diff)
make audio/MIDI setup dialog use ArdourDialog::_sensitive
Diffstat (limited to 'gtk2_ardour/engine_dialog.cc')
-rw-r--r--gtk2_ardour/engine_dialog.cc32
1 files changed, 32 insertions, 0 deletions
diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc
index a8209514c1..ad63ca1935 100644
--- a/gtk2_ardour/engine_dialog.cc
+++ b/gtk2_ardour/engine_dialog.cc
@@ -2731,6 +2731,10 @@ EngineControl::get_output_device_name () const
void
EngineControl::control_app_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
if (!backend) {
@@ -2756,6 +2760,10 @@ EngineControl::on_response (int r)
void
EngineControl::start_stop_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
if (!backend) {
@@ -2777,6 +2785,10 @@ EngineControl::start_stop_button_clicked ()
void
EngineControl::update_devices_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
if (!backend) {
@@ -2791,6 +2803,10 @@ EngineControl::update_devices_button_clicked ()
void
EngineControl::try_autostart_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
ARDOUR::Config->set_try_autostart_engine (!try_autostart_button.get_active ());
try_autostart_button.set_active (ARDOUR::Config->get_try_autostart_engine ());
}
@@ -2798,6 +2814,10 @@ EngineControl::try_autostart_button_clicked ()
void
EngineControl::use_buffered_io_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
if (!backend) {
@@ -3079,6 +3099,10 @@ EngineControl::end_latency_detection ()
void
EngineControl::latency_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
if (!lm_running) {
start_latency_detection ();
} else {
@@ -3089,6 +3113,10 @@ EngineControl::latency_button_clicked ()
void
EngineControl::latency_back_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
ARDOUR::AudioEngine::instance()->stop_latency_detection ();
notebook.set_current_page(0);
}
@@ -3096,6 +3124,10 @@ EngineControl::latency_back_button_clicked ()
void
EngineControl::use_latency_button_clicked ()
{
+ if (!_sensitive) {
+ return;
+ }
+
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
if (_measure_midi) {
ARDOUR::MIDIDM* mididm = ARDOUR::AudioEngine::instance()->mididm ();