13
0

CC121: cycle track monitoring states

This commit is contained in:
Robin Gareus 2018-07-12 21:43:49 +02:00
parent da6a6f1366
commit 1d61a3e17f

View File

@ -45,24 +45,20 @@ static const double encoder_divider = 24.0;
void void
CC121::input_monitor () CC121::input_monitor ()
{ {
if (_current_stripable) { if (_current_stripable && _current_stripable->monitoring_control()) {
MonitorChoice choice = _current_stripable->monitoring_control()->monitoring_choice (); MonitorChoice choice = _current_stripable->monitoring_control()->monitoring_choice ();
switch(choice) { switch(choice) {
case MonitorAuto: case MonitorAuto:
_current_stripable->monitoring_control()->set_value (MonitorInput, PBD::Controllable::NoGroup); _current_stripable->monitoring_control()->set_value (MonitorInput, PBD::Controllable::NoGroup);
get_button(InputMonitor).set_led_state (_output_port, true);
break; break;
case MonitorInput: case MonitorInput:
_current_stripable->monitoring_control()->set_value (MonitorDisk, PBD::Controllable::NoGroup); _current_stripable->monitoring_control()->set_value (MonitorDisk, PBD::Controllable::NoGroup);
get_button(InputMonitor).set_led_state (_output_port, false);
break; break;
case MonitorDisk: case MonitorDisk:
_current_stripable->monitoring_control()->set_value (MonitorCue, PBD::Controllable::NoGroup); _current_stripable->monitoring_control()->set_value (MonitorCue, PBD::Controllable::NoGroup);
get_button(InputMonitor).set_led_state (_output_port, false);
break; break;
case MonitorCue: case MonitorCue:
_current_stripable->monitoring_control()->set_value (MonitorInput, PBD::Controllable::NoGroup); _current_stripable->monitoring_control()->set_value (MonitorAuto, PBD::Controllable::NoGroup);
get_button(InputMonitor).set_led_state (_output_port, true);
break; break;
default: default:
break; break;