mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
make audio/MIDI setup dialog use ArdourDialog::_sensitive
This commit is contained in:
parent
f2ee30c0ec
commit
a416829379
1 changed files with 32 additions and 0 deletions
|
|
@ -2731,6 +2731,10 @@ EngineControl::get_output_device_name () const
|
||||||
void
|
void
|
||||||
EngineControl::control_app_button_clicked ()
|
EngineControl::control_app_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
||||||
|
|
||||||
if (!backend) {
|
if (!backend) {
|
||||||
|
|
@ -2756,6 +2760,10 @@ EngineControl::on_response (int r)
|
||||||
void
|
void
|
||||||
EngineControl::start_stop_button_clicked ()
|
EngineControl::start_stop_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
||||||
|
|
||||||
if (!backend) {
|
if (!backend) {
|
||||||
|
|
@ -2777,6 +2785,10 @@ EngineControl::start_stop_button_clicked ()
|
||||||
void
|
void
|
||||||
EngineControl::update_devices_button_clicked ()
|
EngineControl::update_devices_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
||||||
|
|
||||||
if (!backend) {
|
if (!backend) {
|
||||||
|
|
@ -2791,6 +2803,10 @@ EngineControl::update_devices_button_clicked ()
|
||||||
void
|
void
|
||||||
EngineControl::try_autostart_button_clicked ()
|
EngineControl::try_autostart_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ARDOUR::Config->set_try_autostart_engine (!try_autostart_button.get_active ());
|
ARDOUR::Config->set_try_autostart_engine (!try_autostart_button.get_active ());
|
||||||
try_autostart_button.set_active (ARDOUR::Config->get_try_autostart_engine ());
|
try_autostart_button.set_active (ARDOUR::Config->get_try_autostart_engine ());
|
||||||
}
|
}
|
||||||
|
|
@ -2798,6 +2814,10 @@ EngineControl::try_autostart_button_clicked ()
|
||||||
void
|
void
|
||||||
EngineControl::use_buffered_io_button_clicked ()
|
EngineControl::use_buffered_io_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
||||||
|
|
||||||
if (!backend) {
|
if (!backend) {
|
||||||
|
|
@ -3079,6 +3099,10 @@ EngineControl::end_latency_detection ()
|
||||||
void
|
void
|
||||||
EngineControl::latency_button_clicked ()
|
EngineControl::latency_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!lm_running) {
|
if (!lm_running) {
|
||||||
start_latency_detection ();
|
start_latency_detection ();
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -3089,6 +3113,10 @@ EngineControl::latency_button_clicked ()
|
||||||
void
|
void
|
||||||
EngineControl::latency_back_button_clicked ()
|
EngineControl::latency_back_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ARDOUR::AudioEngine::instance()->stop_latency_detection ();
|
ARDOUR::AudioEngine::instance()->stop_latency_detection ();
|
||||||
notebook.set_current_page(0);
|
notebook.set_current_page(0);
|
||||||
}
|
}
|
||||||
|
|
@ -3096,6 +3124,10 @@ EngineControl::latency_back_button_clicked ()
|
||||||
void
|
void
|
||||||
EngineControl::use_latency_button_clicked ()
|
EngineControl::use_latency_button_clicked ()
|
||||||
{
|
{
|
||||||
|
if (!_sensitive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
|
||||||
if (_measure_midi) {
|
if (_measure_midi) {
|
||||||
ARDOUR::MIDIDM* mididm = ARDOUR::AudioEngine::instance()->mididm ();
|
ARDOUR::MIDIDM* mididm = ARDOUR::AudioEngine::instance()->mididm ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue