2 Copyright (C) 2005 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #include <pbd/convert.h>
21 #include <pbd/stacktrace.h>
23 #include <gtkmm2ext/utils.h>
25 #include <ardour/configuration.h>
26 #include <ardour/session.h>
27 #include <ardour/osc.h>
28 #include <ardour/audioengine.h>
30 #include "ardour_ui.h"
32 #include "gui_thread.h"
37 using namespace Gtkmm2ext;
38 using namespace ARDOUR;
43 ARDOUR_UI::toggle_time_master ()
45 ActionManager::toggle_config_state ("Transport", "ToggleTimeMaster", &Configuration::set_jack_time_master, &Configuration::get_jack_time_master);
49 ARDOUR_UI::toggle_send_mtc ()
51 ActionManager::toggle_config_state ("options", "SendMTC", &Configuration::set_send_mtc, &Configuration::get_send_mtc);
55 ARDOUR_UI::toggle_send_mmc ()
57 ActionManager::toggle_config_state ("options", "SendMMC", &Configuration::set_send_mmc, &Configuration::get_send_mmc);
61 ARDOUR_UI::toggle_use_mmc ()
63 ActionManager::toggle_config_state ("options", "UseMMC", &Configuration::set_mmc_control, &Configuration::get_mmc_control);
67 ARDOUR_UI::toggle_use_osc ()
69 ActionManager::toggle_config_state ("options", "UseOSC", &Configuration::set_use_osc, &Configuration::get_use_osc);
73 ARDOUR_UI::toggle_send_midi_feedback ()
75 ActionManager::toggle_config_state ("options", "SendMIDIfeedback", &Configuration::set_midi_feedback, &Configuration::get_midi_feedback);
79 ARDOUR_UI::set_native_file_header_format (HeaderFormat hf)
81 const char *action = 0;
85 action = X_("FileHeaderFormatBWF");
88 action = X_("FileHeaderFormatWAVE");
91 action = X_("FileHeaderFormatWAVE64");
94 action = X_("FileHeaderFormatiXML");
97 action = X_("FileHeaderFormatRF64");
100 action = X_("FileHeaderFormatCAF");
103 action = X_("FileHeaderFormatAIFF");
106 fatal << string_compose (_("programming error: %1"), "illegal file header format in ::set_native_file_header_format") << endmsg;
110 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
113 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
114 if (ract && ract->get_active() && Config->get_native_file_header_format() != hf) {
115 Config->set_native_file_header_format (hf);
121 ARDOUR_UI::set_native_file_data_format (SampleFormat sf)
123 const char* action = 0;
127 action = X_("FileDataFormatFloat");
130 action = X_("FileDataFormat24bit");
133 fatal << string_compose (_("programming error: %1"), "illegal file data format in ::set_native_file_data_format") << endmsg;
137 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
140 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
141 if (ract && ract->get_active() && Config->get_native_file_data_format() != sf) {
142 Config->set_native_file_data_format (sf);
148 ARDOUR_UI::set_input_auto_connect (AutoConnectOption option)
153 case AutoConnectPhysical:
154 action = X_("InputAutoConnectPhysical");
157 action = X_("InputAutoConnectManual");
160 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
163 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
165 if (ract && ract->get_active() && Config->get_input_auto_connect() != option) {
166 Config->set_input_auto_connect (option);
172 ARDOUR_UI::set_output_auto_connect (AutoConnectOption option)
177 case AutoConnectPhysical:
178 action = X_("OutputAutoConnectPhysical");
180 case AutoConnectMaster:
181 action = X_("OutputAutoConnectMaster");
184 action = X_("OutputAutoConnectManual");
187 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
190 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
192 if (ract && ract->get_active() && Config->get_output_auto_connect() != option) {
193 Config->set_output_auto_connect (option);
199 ARDOUR_UI::set_solo_model (SoloModel model)
201 const char* action = 0;
205 action = X_("SoloViaBus");
209 action = X_("SoloInPlace");
212 fatal << string_compose (_("programming error: unknown solo model in ARDOUR_UI::set_solo_model: %1"), model) << endmsg;
216 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
219 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
221 if (ract && ract->get_active() && Config->get_solo_model() != model) {
222 Config->set_solo_model (model);
229 ARDOUR_UI::set_remote_model (RemoteModel model)
231 const char* action = 0;
235 action = X_("RemoteUserDefined");
238 action = X_("RemoteMixerDefined");
241 action = X_("RemoteEditorDefined");
245 fatal << string_compose (_("programming error: unknown remote model in ARDOUR_UI::set_remote_model: %1"), model) << endmsg;
249 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
252 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
254 if (ract && ract->get_active() && Config->get_remote_model() != model) {
255 Config->set_remote_model (model);
262 ARDOUR_UI::set_monitor_model (MonitorModel model)
264 const char* action = 0;
267 case HardwareMonitoring:
268 action = X_("UseHardwareMonitoring");
271 case SoftwareMonitoring:
272 action = X_("UseSoftwareMonitoring");
274 case ExternalMonitoring:
275 action = X_("UseExternalMonitoring");
279 fatal << string_compose (_("programming error: unknown monitor model in ARDOUR_UI::set_monitor_model: %1"), model) << endmsg;
283 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
286 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
288 if (ract && ract->get_active() && Config->get_monitoring_model() != model) {
289 Config->set_monitoring_model (model);
296 ARDOUR_UI::toggle_auto_input ()
298 ActionManager::toggle_config_state ("Transport", "ToggleAutoInput", &Configuration::set_auto_input, &Configuration::get_auto_input);
302 ARDOUR_UI::toggle_auto_play ()
304 ActionManager::toggle_config_state ("Transport", "ToggleAutoPlay", &Configuration::set_auto_play, &Configuration::get_auto_play);
308 ARDOUR_UI::toggle_auto_return ()
310 ActionManager::toggle_config_state ("Transport", "ToggleAutoReturn", &Configuration::set_auto_return, &Configuration::get_auto_return);
314 ARDOUR_UI::toggle_click ()
316 ActionManager::toggle_config_state ("Transport", "ToggleClick", &Configuration::set_clicking, &Configuration::get_clicking);
320 ARDOUR_UI::toggle_session_auto_loop ()
323 if (session->get_play_loop()) {
324 if (session->transport_rolling()) {
327 session->request_play_loop (false);
330 session->request_play_loop (true);
336 ARDOUR_UI::toggle_punch_in ()
338 ActionManager::toggle_config_state ("Transport", "TogglePunchIn", &Configuration::set_punch_in, &Configuration::get_punch_in);
342 ARDOUR_UI::toggle_punch_out ()
344 ActionManager::toggle_config_state ("Transport", "TogglePunchOut", &Configuration::set_punch_out, &Configuration::get_punch_out);
348 ARDOUR_UI::toggle_video_sync()
350 Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "ToggleVideoSync");
352 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
353 Config->set_use_video_sync (tact->get_active());
358 ARDOUR_UI::toggle_editing_space()
360 Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMaximalEditor");
362 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
363 if (tact->get_active()) {
364 maximise_editing_space ();
366 restore_editing_space ();
372 ARDOUR_UI::toggle_StopPluginsWithTransport()
374 ActionManager::toggle_config_state ("options", "StopPluginsWithTransport", &Configuration::set_plugins_stop_with_transport, &Configuration::get_plugins_stop_with_transport);
378 ARDOUR_UI::toggle_LatchedRecordEnable()
380 ActionManager::toggle_config_state ("options", "LatchedRecordEnable", &Configuration::set_latched_record_enable, &Configuration::get_latched_record_enable);
384 ARDOUR_UI::toggle_RegionEquivalentsOverlap()
386 ActionManager::toggle_config_state ("options", "RegionEquivalentsOverlap", &Configuration::set_use_overlap_equivalency, &Configuration::get_use_overlap_equivalency);
390 ARDOUR_UI::toggle_DoNotRunPluginsWhileRecording()
392 ActionManager::toggle_config_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::set_do_not_record_plugins, &Configuration::get_do_not_record_plugins);
396 ARDOUR_UI::toggle_VerifyRemoveLastCapture()
398 ActionManager::toggle_config_state ("options", "VerifyRemoveLastCapture", &Configuration::set_verify_remove_last_capture, &Configuration::get_verify_remove_last_capture);
402 ARDOUR_UI::toggle_StopRecordingOnXrun()
404 ActionManager::toggle_config_state ("options", "StopRecordingOnXrun", &Configuration::set_stop_recording_on_xrun, &Configuration::get_stop_recording_on_xrun);
408 ARDOUR_UI::toggle_StopTransportAtEndOfSession()
410 ActionManager::toggle_config_state ("options", "StopTransportAtEndOfSession", &Configuration::set_stop_at_session_end, &Configuration::get_stop_at_session_end);
414 ARDOUR_UI::toggle_GainReduceFastTransport()
416 ActionManager::toggle_config_state ("options", "GainReduceFastTransport", &Configuration::set_quieten_at_speed, &Configuration::get_quieten_at_speed);
420 ARDOUR_UI::toggle_LatchedSolo()
422 ActionManager::toggle_config_state ("options", "LatchedSolo", &Configuration::set_solo_latched, &Configuration::get_solo_latched);
426 ARDOUR_UI::toggle_ShowSoloMutes()
428 ActionManager::toggle_config_state ("options", "ShowSoloMutes", &Configuration::set_show_solo_mutes, &Configuration::get_show_solo_mutes);
432 ARDOUR_UI::mtc_port_changed ()
437 if (session->mtc_port()) {
446 positional_sync_strings.clear ();
447 positional_sync_strings.push_back (slave_source_to_string (None));
449 positional_sync_strings.push_back (slave_source_to_string (MTC));
451 positional_sync_strings.push_back (slave_source_to_string (JACK));
453 set_popdown_strings (sync_option_combo, positional_sync_strings);
457 ARDOUR_UI::setup_session_options ()
461 Config->ParameterChanged.connect (mem_fun (*this, &ARDOUR_UI::parameter_changed));
466 ARDOUR_UI::map_solo_model ()
470 if (Config->get_solo_model() == InverseMute) {
471 on = X_("SoloInPlace");
473 on = X_("SoloViaBus");
476 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
478 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
480 if (tact && !tact->get_active()) {
481 tact->set_active (true);
487 ARDOUR_UI::map_monitor_model ()
491 switch (Config->get_monitoring_model()) {
492 case HardwareMonitoring:
493 on = X_("UseHardwareMonitoring");
495 case SoftwareMonitoring:
496 on = X_("UseSoftwareMonitoring");
498 case ExternalMonitoring:
499 on = X_("UseExternalMonitoring");
503 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
505 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
507 if (tact && !tact->get_active()) {
508 tact->set_active (true);
514 ARDOUR_UI::map_remote_model ()
518 switch (Config->get_remote_model()) {
520 on = X_("RemoteUserDefined");
523 on = X_("RemoteMixerDefined");
526 on = X_("RemoteEditorDefined");
530 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
532 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
534 if (tact && !tact->get_active()) {
535 tact->set_active (true);
541 ARDOUR_UI::map_file_header_format ()
543 const char* action = 0;
545 switch (Config->get_native_file_header_format()) {
547 action = X_("FileHeaderFormatBWF");
551 action = X_("FileHeaderFormatWAVE");
555 action = X_("FileHeaderFormatWAVE64");
559 action = X_("FileHeaderFormatiXML");
563 action = X_("FileHeaderFormatRF64");
567 action = X_("FileHeaderFormatCAF");
571 fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
572 Config->get_native_file_header_format()) << endmsg;
577 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
580 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
582 if (tact && !tact->get_active()) {
583 tact->set_active (true);
589 ARDOUR_UI::map_file_data_format ()
591 const char* action = 0;
593 switch (Config->get_native_file_data_format()) {
595 action = X_("FileDataFormatFloat");
599 action = X_("FileDataFormat24bit");
603 fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
604 Config->get_native_file_data_format()) << endmsg;
609 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
612 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
614 if (tact && !tact->get_active()) {
615 tact->set_active (true);
621 ARDOUR_UI::map_input_auto_connect ()
625 if (Config->get_input_auto_connect() == (AutoConnectOption) 0) {
626 on = "InputAutoConnectManual";
628 on = "InputAutoConnectPhysical";
631 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
633 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
635 if (tact && !tact->get_active()) {
636 tact->set_active (true);
642 ARDOUR_UI::map_output_auto_connect ()
646 if (Config->get_output_auto_connect() == (AutoConnectOption) 0) {
647 on = "OutputAutoConnectManual";
648 } else if (Config->get_output_auto_connect() == AutoConnectPhysical) {
649 on = "OutputAutoConnectPhysical";
651 on = "OutputAutoConnectMaster";
654 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
656 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
658 if (tact && !tact->get_active()) {
659 tact->set_active (true);
665 ARDOUR_UI::map_meter_falloff ()
667 const char* action = X_("MeterFalloffMedium");
669 float val = Config->get_meter_falloff ();
670 MeterFalloff code = meter_falloff_from_float(val);
673 case MeterFalloffOff:
674 action = X_("MeterFalloffOff");
676 case MeterFalloffSlowest:
677 action = X_("MeterFalloffSlowest");
679 case MeterFalloffSlow:
680 action = X_("MeterFalloffSlow");
682 case MeterFalloffMedium:
683 action = X_("MeterFalloffMedium");
685 case MeterFalloffFast:
686 action = X_("MeterFalloffFast");
688 case MeterFalloffFaster:
689 action = X_("MeterFalloffFaster");
691 case MeterFalloffFastest:
692 action = X_("MeterFalloffFastest");
696 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
699 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
700 if (ract && !ract->get_active()) {
701 ract->set_active (true);
707 ARDOUR_UI::map_meter_hold ()
709 const char* action = X_("MeterHoldMedium");
711 /* XXX hack alert. Fix this. Please */
713 float val = Config->get_meter_hold ();
714 MeterHold code = (MeterHold) (int) (floor (val));
718 action = X_("MeterHoldOff");
721 action = X_("MeterHoldShort");
723 case MeterHoldMedium:
724 action = X_("MeterHoldMedium");
727 action = X_("MeterHoldLong");
731 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
734 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
735 if (ract && !ract->get_active()) {
736 ract->set_active (true);
742 ARDOUR_UI::set_meter_hold (MeterHold val)
744 const char* action = 0;
747 fval = meter_hold_to_float (val);
751 action = X_("MeterHoldOff");
754 action = X_("MeterHoldShort");
756 case MeterHoldMedium:
757 action = X_("MeterHoldMedium");
760 action = X_("MeterHoldLong");
764 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
767 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
768 if (ract && ract->get_active() && Config->get_meter_hold() != fval) {
769 Config->set_meter_hold (fval);
775 ARDOUR_UI::set_meter_falloff (MeterFalloff val)
777 const char* action = 0;
780 fval = meter_falloff_to_float (val);
783 case MeterFalloffOff:
784 action = X_("MeterFalloffOff");
786 case MeterFalloffSlowest:
787 action = X_("MeterFalloffSlowest");
789 case MeterFalloffSlow:
790 action = X_("MeterFalloffSlow");
792 case MeterFalloffMedium:
793 action = X_("MeterFalloffMedium");
795 case MeterFalloffFast:
796 action = X_("MeterFalloffFast");
798 case MeterFalloffFaster:
799 action = X_("MeterFalloffFaster");
801 case MeterFalloffFastest:
802 action = X_("MeterFalloffFastest");
806 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
809 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
810 if (ract && ract->get_active() && Config->get_meter_falloff () != fval) {
811 Config->set_meter_falloff (fval);
817 ARDOUR_UI::parameter_changed (const char* parameter_name)
819 ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), parameter_name));
821 #define PARAM_IS(x) (!strcmp (parameter_name, (x)))
823 if (PARAM_IS ("slave-source")) {
825 sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
827 switch (Config->get_slave_source()) {
829 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
830 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
834 /* XXX need to make auto-play is off as well as insensitive */
835 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
836 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
840 } else if (PARAM_IS ("send-mtc")) {
842 ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
844 } else if (PARAM_IS ("send-mmc")) {
846 ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
848 } else if (PARAM_IS ("use-osc")) {
851 if (Config->get_use_osc()) {
858 ActionManager::map_some_state ("options", "UseOSC", &Configuration::get_use_osc);
860 } else if (PARAM_IS ("mmc-control")) {
861 ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
862 } else if (PARAM_IS ("midi-feedback")) {
863 ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
864 } else if (PARAM_IS ("do-not-record-plugins")) {
865 ActionManager::map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
866 } else if (PARAM_IS ("latched-record-enable")) {
867 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
868 } else if (PARAM_IS ("solo-latched")) {
869 ActionManager::map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
870 } else if (PARAM_IS ("show-solo-mutes")) {
871 ActionManager::map_some_state ("options", "ShowSoloMutes", &Configuration::get_show_solo_mutes);
872 } else if (PARAM_IS ("solo-model")) {
874 } else if (PARAM_IS ("auto-play")) {
875 ActionManager::map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
876 } else if (PARAM_IS ("auto-return")) {
877 ActionManager::map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
878 } else if (PARAM_IS ("auto-input")) {
879 ActionManager::map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
880 } else if (PARAM_IS ("punch-out")) {
881 ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
882 } else if (PARAM_IS ("punch-in")) {
883 ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
884 } else if (PARAM_IS ("clicking")) {
885 ActionManager::map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
886 } else if (PARAM_IS ("jack-time-master")) {
887 ActionManager::map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
888 } else if (PARAM_IS ("plugins-stop-with-transport")) {
889 ActionManager::map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
890 } else if (PARAM_IS ("latched-record-enable")) {
891 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
892 } else if (PARAM_IS ("verify-remove-last-capture")) {
893 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
894 } else if (PARAM_IS ("stop-recording-on-xrun")) {
895 ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
896 } else if (PARAM_IS ("stop-at-session-end")) {
897 ActionManager::map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
898 } else if (PARAM_IS ("monitoring-model")) {
899 map_monitor_model ();
900 } else if (PARAM_IS ("remote-model")) {
902 } else if (PARAM_IS ("use-video-sync")) {
903 ActionManager::map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
904 } else if (PARAM_IS ("quieten-at-speed")) {
905 ActionManager::map_some_state ("options", "GainReduceFastTransport", &Configuration::get_quieten_at_speed);
906 } else if (PARAM_IS ("shuttle-behaviour")) {
908 switch (Config->get_shuttle_behaviour ()) {
910 shuttle_style_button.set_active_text (_("sprung"));
912 shuttle_box.queue_draw ();
914 if (session->transport_rolling()) {
915 shuttle_fract = SHUTTLE_FRACT_SPEED1;
916 session->request_transport_speed (1.0);
921 shuttle_style_button.set_active_text (_("wheel"));
925 } else if (PARAM_IS ("shuttle-units")) {
927 switch (Config->get_shuttle_units()) {
929 shuttle_units_button.set_label("% ");
932 shuttle_units_button.set_label(_("ST"));
935 } else if (PARAM_IS ("input-auto-connect")) {
936 map_input_auto_connect ();
937 } else if (PARAM_IS ("output-auto-connect")) {
938 map_output_auto_connect ();
939 } else if (PARAM_IS ("native-file-header-format")) {
940 map_file_header_format ();
941 } else if (PARAM_IS ("native-file-data-format")) {
942 map_file_data_format ();
943 } else if (PARAM_IS ("meter-hold")) {
945 } else if (PARAM_IS ("meter-falloff")) {
946 map_meter_falloff ();
947 } else if (PARAM_IS ("verify-remove-last-capture")) {
948 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
949 } else if (PARAM_IS ("video-pullup") || PARAM_IS ("smpte-format")) {
951 primary_clock.set (session->audible_frame(), true);
952 secondary_clock.set (session->audible_frame(), true);
954 primary_clock.set (0, true);
955 secondary_clock.set (0, true);
957 } else if (PARAM_IS ("use-overlap-equivalency")) {
958 ActionManager::map_some_state ("options", "RegionEquivalentsOverlap", &Configuration::get_use_overlap_equivalency);