mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
expand use of new BasicUI API for transport button state to all control surfaces
This commit is contained in:
parent
52aa405ce3
commit
d79d2807b1
3 changed files with 10 additions and 10 deletions
|
|
@ -680,9 +680,9 @@ CC121::map_transport_state ()
|
||||||
start_blinking (Play);
|
start_blinking (Play);
|
||||||
}
|
}
|
||||||
|
|
||||||
get_button (Stop).set_led_state (_output_port, session->transport_stopped_or_stopping ());
|
get_button (Stop).set_led_state (_output_port, stop_button_onoff());
|
||||||
get_button (Rewind).set_led_state (_output_port, session->transport_speed() < 0.0);
|
get_button (Rewind).set_led_state (_output_port, rewind_button_onoff());
|
||||||
get_button (Ffwd).set_led_state (_output_port, session->transport_speed() > 1.0);
|
get_button (Ffwd).set_led_state (_output_port, ffwd_button_onoff());
|
||||||
get_button (Jog).set_led_state (_output_port, _jogmode == scroll);
|
get_button (Jog).set_led_state (_output_port, _jogmode == scroll);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -718,9 +718,9 @@ FaderPort::map_transport_state ()
|
||||||
start_blinking (Play);
|
start_blinking (Play);
|
||||||
}
|
}
|
||||||
|
|
||||||
get_button (Stop).set_led_state (_output_port, session->transport_stopped_or_stopping ());
|
get_button (Stop).set_led_state (_output_port, stop_button_onoff());
|
||||||
get_button (Rewind).set_led_state (_output_port, session->transport_speed() < 0.0);
|
get_button (Rewind).set_led_state (_output_port, rewind_button_onoff ());
|
||||||
get_button (Ffwd).set_led_state (_output_port, session->transport_speed() > 1.0);
|
get_button (Ffwd).set_led_state (_output_port, ffwd_button_onoff());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -1062,10 +1062,10 @@ US2400Protocol::notify_transport_state_changed()
|
||||||
}
|
}
|
||||||
|
|
||||||
// switch various play and stop buttons on / off
|
// switch various play and stop buttons on / off
|
||||||
update_global_button (Button::Play, session->transport_speed() == 1.0);
|
update_global_button (Button::Play, play_button_onoff());
|
||||||
update_global_button (Button::Stop, session->transport_stopped_or_stopping ());
|
update_global_button (Button::Stop, stop_button_onoff());
|
||||||
update_global_button (Button::Rewind, session->transport_speed() < 0.0);
|
update_global_button (Button::Rewind, rewind_button_onoff());
|
||||||
update_global_button (Button::Ffwd, session->transport_speed() > 1.0);
|
update_global_button (Button::Ffwd, ffwd_button_onoff());
|
||||||
|
|
||||||
// sometimes a return to start leaves time code at old time
|
// sometimes a return to start leaves time code at old time
|
||||||
_timecode_last = string (10, ' ');
|
_timecode_last = string (10, ' ');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue