goodbye USE_TRACKS_CODE_FEATURES and is_tracks_build
[ardour.git] / libs / ardour / ardour / rc_configuration_vars.h
1 /*
2  * Copyright (C) 2000-2019 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
4  * Copyright (C) 2012-2019 Robin Gareus <robin@gareus.org>
5  * Copyright (C) 2013-2015 Nick Mainsbridge <mainsbridge@gmail.com>
6  * Copyright (C) 2013-2018 Colin Fletcher <colin.m.fletcher@googlemail.com>
7  * Copyright (C) 2014-2019 Ben Loftis <ben@harrisonconsoles.com>
8  * Copyright (C) 2018 Len Ovens <len@ovenwerks.net>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License along
21  * with this program; if not, write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  */
24
25 /*****************************************************
26     DO NOT USE uint8_t or any other type that resolves
27     to a single char, because the value will be
28     stored incorrectly when serialized. Use int32_t
29     instead and ensure that code correctly limits
30     the value of the variable.
31 *****************************************************/
32
33 /*****************************************************
34     DO dump the config using cfgtool to system_config
35     after modifying this file.
36
37     ./waf && gtk2_ardour/arcfg system_config
38 *****************************************************/
39
40 /* IO connection */
41
42 CONFIG_VARIABLE (bool, auto_connect_standard_busses, "auto-connect-standard-busses", true)
43 /* this variable is used to indicate output mode in Waves Tracks:
44    "Multi Out" == AutoConnectPhysical and "Stereo Out" == AutoConnectMaster
45 */
46 CONFIG_VARIABLE (AutoConnectOption, output_auto_connect, "output-auto-connect", AutoConnectMaster)
47 CONFIG_VARIABLE (AutoConnectOption, input_auto_connect, "input-auto-connect", AutoConnectPhysical)
48 CONFIG_VARIABLE (bool, strict_io, "strict-io", true)
49
50 /* Naming */
51 CONFIG_VARIABLE (TracksAutoNamingRule, tracks_auto_naming, "tracks-auto-naming", UseDefaultNames)
52
53 /* Transport Masters (all) */
54
55 CONFIG_VARIABLE (bool, transport_masters_just_roll_when_sync_lost, "transport-masters-just-roll-when-sync-lost", false)
56 CONFIG_VARIABLE (bool, midi_clock_sets_tempo, "midi-clock-sets-tempo", true)
57
58 /* MIDI and MIDI related */
59
60 CONFIG_VARIABLE (bool, trace_midi_input, "trace-midi-input", false)
61 CONFIG_VARIABLE (bool, trace_midi_output, "trace-midi-output", false)
62 CONFIG_VARIABLE (bool, send_mtc, "send-mtc", false)
63 CONFIG_VARIABLE (bool, send_mmc, "send-mmc", false)
64 CONFIG_VARIABLE (bool, send_midi_clock, "send-midi-clock", false)
65 CONFIG_VARIABLE (bool, mmc_control, "mmc-control", true)
66 CONFIG_VARIABLE (bool, midi_feedback, "midi-feedback", false)
67 CONFIG_VARIABLE (int32_t, mmc_receive_device_id, "mmc-receive-device-id", 0x7f)
68 CONFIG_VARIABLE (int32_t, mmc_send_device_id, "mmc-send-device-id", 0)
69 CONFIG_VARIABLE (int32_t, initial_program_change, "initial-program-change", -1)
70 CONFIG_VARIABLE (bool, first_midi_bank_is_zero, "display-first-midi-bank-as-zero", false)
71 CONFIG_VARIABLE (int32_t, inter_scene_gap_samples, "inter-scene-gap-samples", 1)
72 CONFIG_VARIABLE (bool, midi_input_follows_selection, "midi-input-follows-selection", 1)
73
74 /* Timecode and related */
75
76 CONFIG_VARIABLE (bool, run_all_transport_masters_always, "run-all-transport-masters-always", true)
77 CONFIG_VARIABLE (int, mtc_qf_speed_tolerance, "mtc-qf-speed-tolerance", 5)
78 CONFIG_VARIABLE (bool, timecode_sync_frame_rate, "timecode-sync-frame-rate", true)
79 CONFIG_VARIABLE (bool, send_ltc, "send-ltc", false)
80 CONFIG_VARIABLE (bool, ltc_send_continuously, "ltc-send-continuously", true)
81 CONFIG_VARIABLE (std::string, ltc_output_port, "ltc-output-port", "")
82 CONFIG_VARIABLE (float, ltc_output_volume, "ltc-output-volume", 0.125893)
83
84 /* control surfaces */
85
86 CONFIG_VARIABLE (uint32_t, feedback_interval_ms,  "feedback-interval-ms", 100)
87 CONFIG_VARIABLE (bool, use_tranzport,  "use-tranzport", false)
88
89 /* disk operations */
90
91 CONFIG_VARIABLE (uint32_t, minimum_disk_read_bytes, "minimum-disk-read-bytes", ARDOUR::DiskReader::default_chunk_samples() * sizeof (ARDOUR::Sample))
92 CONFIG_VARIABLE (uint32_t, minimum_disk_write_bytes, "minimum-disk-write-bytes", ARDOUR::DiskWriter::default_chunk_samples() * sizeof (ARDOUR::Sample))
93 CONFIG_VARIABLE (float, midi_readahead,  "midi-readahead", 1.0)
94 CONFIG_VARIABLE (BufferingPreset, buffering_preset, "buffering-preset", Medium)
95 CONFIG_VARIABLE (float, audio_capture_buffer_seconds, "capture-buffer-seconds", 5.0)
96 CONFIG_VARIABLE (float, audio_playback_buffer_seconds, "playback-buffer-seconds", 5.0)
97 CONFIG_VARIABLE (float, midi_track_buffer_seconds, "midi-track-buffer-seconds", 1.0)
98 CONFIG_VARIABLE (uint32_t, disk_choice_space_threshold,  "disk-choice-space-threshold", 57600000)
99 CONFIG_VARIABLE (bool, auto_analyse_audio, "auto-analyse-audio", false)
100 CONFIG_VARIABLE (float, transient_sensitivity, "transient-sensitivity", 50)
101 CONFIG_VARIABLE (float, max_transport_speed, "max-transport-speed", 8.0)
102
103 /* OSC */
104
105 CONFIG_VARIABLE (uint32_t, osc_port, "osc-port", 3819)
106 CONFIG_VARIABLE (bool, use_osc, "use-osc", false)
107
108 /* editing related */
109
110 CONFIG_VARIABLE (LayerModel, layer_model, "layer-model", Manual)
111 CONFIG_VARIABLE (bool, automation_follows_regions, "automation-follows-regions", true)
112 CONFIG_VARIABLE (bool, region_boundaries_from_selected_tracks, "region-boundaries-from-selected-tracks", true)
113 CONFIG_VARIABLE (bool, region_boundaries_from_onscreen_tracks, "region-boundaries-from-onscreen_tracks", true)
114 CONFIG_VARIABLE (FadeShape, default_fade_shape, "default-fade-shape", FadeConstantPower)
115 CONFIG_VARIABLE (RangeSelectionAfterSplit, range_selection_after_split, "range-selection-after-split", PreserveSel)
116 CONFIG_VARIABLE (RegionSelectionAfterSplit, region_selection_after_split, "region-selection-after-split", None)
117
118 /* monitoring, mute, solo etc */
119
120 CONFIG_VARIABLE (bool, mute_affects_pre_fader, "mute-affects-pre-fader", false)
121 CONFIG_VARIABLE (bool, mute_affects_post_fader, "mute-affects-post-fader", true)
122 CONFIG_VARIABLE (bool, mute_affects_control_outs, "mute-affects-control-outs", true)
123 CONFIG_VARIABLE (bool, mute_affects_main_outs, "mute-affects-main-outs", true)
124 CONFIG_VARIABLE (MonitorModel, monitoring_model, "monitoring-model", ExternalMonitoring)
125 CONFIG_VARIABLE (ListenPosition, listen_position, "listen-position", AfterFaderListen)
126 CONFIG_VARIABLE (PFLPosition, pfl_position, "pfl-position", PFLFromAfterProcessors)
127 CONFIG_VARIABLE (AFLPosition, afl_position, "afl-position", AFLFromAfterProcessors)
128 CONFIG_VARIABLE (bool, use_monitor_bus, "use-monitor-bus", false)
129
130 CONFIG_VARIABLE (bool, solo_control_is_listen_control, "solo-control-is-listen-control", false)
131 CONFIG_VARIABLE (bool, exclusive_solo, "exclusive-solo", false)
132 CONFIG_VARIABLE (bool, latched_record_enable, "latched-record-enable", false)
133 CONFIG_VARIABLE (bool, all_safe, "all-safe", false)
134 CONFIG_VARIABLE (bool, show_solo_mutes, "show-solo-mutes", true)
135 CONFIG_VARIABLE (bool, solo_mute_override, "solo-mute-override", false)
136 CONFIG_VARIABLE (bool, tape_machine_mode, "tape-machine-mode", false)
137 CONFIG_VARIABLE (gain_t, solo_mute_gain, "solo-mute-gain", 0.0)
138 CONFIG_VARIABLE (std::string, monitor_bus_preferred_bundle, "monitor-bus-preferred-bundle", "")
139 CONFIG_VARIABLE (bool, quieten_at_speed, "quieten-at-speed", true)
140
141 CONFIG_VARIABLE (bool, link_send_and_route_panner, "link-send-and-route-panner", true)
142 CONFIG_VARIABLE (std::string, midi_audition_synth_uri, "midi-audition-synth-uri", "@default@") /*deprecated*/
143
144 /* click */
145
146 CONFIG_VARIABLE (bool, clicking, "clicking", false)
147 CONFIG_VARIABLE (bool, click_record_only, "click-record-only", false)
148 CONFIG_VARIABLE (std::string, click_sound, "click-sound", "")
149 CONFIG_VARIABLE (std::string, click_emphasis_sound, "click-emphasis-sound", "")
150 CONFIG_VARIABLE (gain_t, click_gain, "click-gain", 1.0)
151 CONFIG_VARIABLE (bool, use_click_emphasis, "use-click-emphasis", true)
152
153 /* transport control and related */
154
155 /** if true, we call Processor::flush() on all processors when the transport is stopped.
156  *  Note that processors are still run when the transport is not moving.
157  */
158 CONFIG_VARIABLE (bool, skip_playback, "skip-playback", true)
159 CONFIG_VARIABLE (bool, plugins_stop_with_transport, "plugins-stop-with-transport", false)
160 CONFIG_VARIABLE (bool, stop_recording_on_xrun, "stop-recording-on-xrun", false)
161 CONFIG_VARIABLE (bool, create_xrun_marker, "create-xrun-marker", true)
162 CONFIG_VARIABLE (bool, stop_at_session_end, "stop-at-session-end", false)
163 CONFIG_VARIABLE (bool, seamless_loop, "seamless-loop", false)
164 CONFIG_VARIABLE (float, preroll_seconds, "preroll-seconds", -2.0f)
165 CONFIG_VARIABLE (bool, loop_is_mode, "loop-is-mode", false)
166 CONFIG_VARIABLE (samplecnt_t, preroll, "preroll", 0)
167 CONFIG_VARIABLE (samplecnt_t, postroll, "postroll", 0)
168 CONFIG_VARIABLE (float, shuttle_speed_factor, "shuttle-speed-factor", 1.0f) // used for MMC shuttle
169 CONFIG_VARIABLE (float, shuttle_speed_threshold, "shuttle-speed-threshold", 5.0f) // used for MMC shuttle
170 CONFIG_VARIABLE (ShuttleBehaviour, shuttle_behaviour, "shuttle-behaviour", Sprung)
171 CONFIG_VARIABLE (ShuttleUnits, shuttle_units, "shuttle-units", Percentage)
172 CONFIG_VARIABLE (float, shuttle_max_speed, "shuttle-max-speed", 8.0f)
173 CONFIG_VARIABLE (bool, locate_while_waiting_for_sync, "locate-while-waiting-for-sync", false)
174 CONFIG_VARIABLE (bool, disable_disarm_during_roll, "disable-disarm-during-roll", false)
175 CONFIG_VARIABLE (AutoReturnTarget, auto_return_target_list, "auto-return-target-list", AutoReturnTarget(LastLocate|RangeSelectionStart|Loop|RegionSelectionStart))
176
177 /* metering */
178
179 CONFIG_VARIABLE (float, meter_falloff, "meter-falloff", 13.3f)
180 CONFIG_VARIABLE (MeterType, meter_type_master, "meter-type-master", MeterK14)
181 CONFIG_VARIABLE (MeterType, meter_type_track, "meter-type-track", MeterPeak)
182 CONFIG_VARIABLE (MeterType, meter_type_bus, "meter-type-bus", MeterPeak)
183
184
185 /* miscellany */
186
187 CONFIG_VARIABLE (bool, try_autostart_engine, "try-autostart-engine", false)
188 CONFIG_VARIABLE (bool, hide_dummy_backend, "hide-dummy-backend", true)
189 CONFIG_VARIABLE (bool, copy_demo_sessions, "copy-demo-sessions", true)
190 CONFIG_VARIABLE (std::string, auditioner_output_left, "auditioner-output-left", "default")
191 CONFIG_VARIABLE (std::string, auditioner_output_right, "auditioner-output-right", "default")
192 CONFIG_VARIABLE (bool, replicate_missing_region_channels, "replicate-missing-region-channels", true)
193 CONFIG_VARIABLE (bool, hiding_groups_deactivates_groups, "hiding-groups-deactivates-groups", true)
194 CONFIG_VARIABLE (bool, verify_remove_last_capture, "verify-remove-last-capture", true)
195 CONFIG_VARIABLE (bool, save_history, "save-history", true)
196 CONFIG_VARIABLE (int32_t, saved_history_depth, "save-history-depth", 20)
197 CONFIG_VARIABLE (int32_t, history_depth, "history-depth", 20)
198 CONFIG_VARIABLE (RegionEquivalence, region_equivalence, "region-equivalency", LayerTime)
199 CONFIG_VARIABLE (bool, periodic_safety_backups, "periodic-safety-backups", true)
200 CONFIG_VARIABLE (uint32_t, periodic_safety_backup_interval, "periodic-safety-backup-interval", 120)
201 CONFIG_VARIABLE (float, automation_interval_msecs, "automation-interval-msecs", 30)
202 #ifdef __APPLE__
203 CONFIG_VARIABLE_SPECIAL (std::string, default_session_parent_dir, "default-session-parent-dir", "~/Music", poor_mans_glob)
204 #elif defined (PLATFORM_WINDOWS)
205 CONFIG_VARIABLE_SPECIAL (std::string, default_session_parent_dir, "default-session-parent-dir", "~\\Documents", poor_mans_glob)
206 #else
207 CONFIG_VARIABLE_SPECIAL (std::string, default_session_parent_dir, "default-session-parent-dir", "~", poor_mans_glob)
208 #endif
209 CONFIG_VARIABLE (bool, allow_special_bus_removal, "allow-special-bus-removal", false)
210 CONFIG_VARIABLE (int32_t, processor_usage, "processor-usage", -1)
211 CONFIG_VARIABLE (gain_t, max_gain, "max-gain", 2.0) /* +6.0dB */
212 CONFIG_VARIABLE (uint32_t, max_recent_sessions, "max-recent-sessions", 10)
213 CONFIG_VARIABLE (uint32_t, max_recent_templates, "max-recent-templates", 10)
214 CONFIG_VARIABLE (double, automation_thinning_factor, "automation-thinning-factor", 20.0)
215 CONFIG_VARIABLE (std::string, freesound_download_dir, "freesound-download-dir", Glib::get_home_dir() + "/Freesound/snd")
216 CONFIG_VARIABLE (samplecnt_t, range_location_minimum, "range-location-minimum", 128) /* samples */
217 CONFIG_VARIABLE (EditMode, edit_mode, "edit-mode", Slide)
218
219 /* plugin related */
220
221 CONFIG_VARIABLE (bool, new_plugins_active, "new-plugins-active", true)
222 CONFIG_VARIABLE (bool, use_plugin_own_gui, "use-plugin-own-gui", true)
223 CONFIG_VARIABLE (bool, use_windows_vst, "use-windows-vst", true)
224 CONFIG_VARIABLE (bool, use_lxvst, "use-lxvst", true)
225 CONFIG_VARIABLE (bool, use_macvst, "use-macvst", true)
226 CONFIG_VARIABLE (bool, discover_vst_on_start, "discover-vst-on-start", false)
227 CONFIG_VARIABLE (bool, verbose_plugin_scan, "verbose-plugin-scan", false)
228 CONFIG_VARIABLE (bool, conceal_lv1_if_lv2_exists, "conceal-lv1-if-lv2-exists", true)
229 CONFIG_VARIABLE (int, vst_scan_timeout, "vst-scan-timeout", 1200) /* deciseconds, per plugin, <= 0 no timeout */
230 CONFIG_VARIABLE (bool, discover_audio_units, "discover-audio-units", false)
231 CONFIG_VARIABLE (bool, ask_replace_instrument, "ask-replace-instrument", true)
232 CONFIG_VARIABLE (bool, ask_setup_instrument, "ask-setup-instrument", true)
233 CONFIG_VARIABLE (uint32_t, limit_n_automatables, "limit-n-automatables", 512)
234
235 /* custom user plugin paths */
236 CONFIG_VARIABLE (std::string, plugin_path_vst, "plugin-path-vst", "@default@")
237 CONFIG_VARIABLE (std::string, plugin_path_lxvst, "plugin-path-lxvst", "@default@")
238
239 /* denormal management */
240
241 CONFIG_VARIABLE (bool, denormal_protection, "denormal-protection", false)
242 CONFIG_VARIABLE (DenormalModel, denormal_model, "denormal-model", DenormalFTZDAZ)
243
244 /* visibility of various things */
245
246
247 /* web addresses used in the program */
248
249 CONFIG_VARIABLE (std::string, osx_pingback_url, "osx-pingback-url", "http://community.ardour.org/pingback/osx/")
250 CONFIG_VARIABLE (std::string, linux_pingback_url, "linux-pingback-url", "http://community.ardour.org/pingback/linux/")
251 CONFIG_VARIABLE (std::string, windows_pingback_url, "windows-pingback-url", "http://community.ardour.org/pingback/windows/")
252 CONFIG_VARIABLE (std::string, tutorial_manual_url, "tutorial-manual-url", "http://ardour.org/tutorial")
253 CONFIG_VARIABLE (std::string, reference_manual_url, "reference-manual-url", "http://manual.ardour.org/")
254 CONFIG_VARIABLE (std::string, updates_url, "updates-url", "http://ardour.org/whatsnew.html")
255 CONFIG_VARIABLE (std::string, donate_url, "donate-url", "http://ardour.org/donate")
256
257 /* video timeline configuration */
258 CONFIG_VARIABLE (std::string, xjadeo_binary, "xjadeo-binary", "")
259 CONFIG_VARIABLE (bool, video_advanced_setup, "video-advanced-setup", false)
260 CONFIG_VARIABLE (std::string, video_server_url, "video-server-url", "http://127.0.0.1:1554")
261 #ifndef PLATFORM_WINDOWS
262 CONFIG_VARIABLE (std::string, video_server_docroot, "video-server-docroot", "/")
263 #else
264 CONFIG_VARIABLE (std::string, video_server_docroot, "video-server-docroot", "C:\\")
265 #endif
266 CONFIG_VARIABLE (bool, show_video_export_info, "show-video-export-info", true)
267 CONFIG_VARIABLE (bool, show_video_server_dialog, "show-video-server-dialog", false)
268
269 CONFIG_VARIABLE (float, export_preroll, "export-preroll", 10.0) // seconds
270 CONFIG_VARIABLE (float, export_silence_threshold, "export-silence-threshold", -INFINITY) // dB