mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
Send MMC/MTC options will stick now, and prevent the engine from messing
the configuration variables. git-svn-id: svn://localhost/ardour2/trunk@1638 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6bcb3cde43
commit
ee9f39ed3c
2 changed files with 5 additions and 18 deletions
|
|
@ -398,24 +398,6 @@ Session::setup_midi_control ()
|
||||||
mtc_msg[10] = 0xf1;
|
mtc_msg[10] = 0xf1;
|
||||||
mtc_msg[12] = 0xf1;
|
mtc_msg[12] = 0xf1;
|
||||||
mtc_msg[14] = 0xf1;
|
mtc_msg[14] = 0xf1;
|
||||||
|
|
||||||
if (_mmc_port != 0) {
|
|
||||||
|
|
||||||
Config->set_send_mmc (session_send_mmc);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
mmc = 0;
|
|
||||||
session_send_mmc = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_mtc_port != 0) {
|
|
||||||
|
|
||||||
Config->set_send_mtc (session_send_mtc);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
session_send_mtc = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
||||||
|
|
@ -3177,6 +3177,8 @@ Session::config_changed (const char* parameter_name)
|
||||||
/* mark us ready to send */
|
/* mark us ready to send */
|
||||||
next_quarter_frame_to_send = 0;
|
next_quarter_frame_to_send = 0;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
session_send_mtc = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (PARAM_IS ("send-mmc")) {
|
} else if (PARAM_IS ("send-mmc")) {
|
||||||
|
|
@ -3187,6 +3189,9 @@ Session::config_changed (const char* parameter_name)
|
||||||
|
|
||||||
if (_mmc_port != 0) {
|
if (_mmc_port != 0) {
|
||||||
session_send_mmc = Config->get_send_mmc();
|
session_send_mmc = Config->get_send_mmc();
|
||||||
|
} else {
|
||||||
|
mmc = 0;
|
||||||
|
session_send_mmc = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (PARAM_IS ("midi-feedback")) {
|
} else if (PARAM_IS ("midi-feedback")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue