make audio/MIDI setup dialog use ArdourDialog::_sensitive
This commit is contained in:
parent
f2ee30c0ec
commit
a416829379
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue