]> git.sesse.net Git - nageru/blobdiff - flags.h
Add the two final missing MIDI mappings, namely buttons for toggling limiter and...
[nageru] / flags.h
diff --git a/flags.h b/flags.h
index 0f27cf205b749558ab342bd5344491677619ceb8..be02f388efd5dd5ce6868babf5495a46ff41e31b 100644 (file)
--- a/flags.h
+++ b/flags.h
@@ -1,27 +1,44 @@
 #ifndef _FLAGS_H
 #define _FLAGS_H
 
+#include <map>
 #include <string>
+#include <vector>
 
 #include "defs.h"
 
 struct Flags {
        int num_cards = 2;
        std::string va_display;
+       bool fake_cards_audio = false;
        bool uncompressed_video_to_http = false;
        bool x264_video_to_http = false;
+       std::vector<std::string> theme_dirs { ".", "/usr/local/share/nageru" };
        std::string theme_filename = "theme.lua";
-       bool flat_audio = false;
+       bool locut_enabled = true;
+       bool gain_staging_auto = true;
+       float initial_gain_staging_db = 0.0f;
+       bool compressor_enabled = true;
+       bool limiter_enabled = true;
+       bool final_makeup_gain_auto = true;
        bool flush_pbos = true;
        std::string stream_mux_name = DEFAULT_STREAM_MUX_NAME;
        bool stream_coarse_timebase = false;
        std::string stream_audio_codec_name;  // Blank = use the same as for the recording.
        int stream_audio_codec_bitrate = DEFAULT_AUDIO_OUTPUT_BIT_RATE;  // Ignored if stream_audio_codec_name is blank.
-       std::string x264_preset = X264_DEFAULT_PRESET;
+       std::string x264_preset;  // Empty will be overridden by X264_DEFAULT_PRESET, unless speedcontrol is set.
        std::string x264_tune = X264_DEFAULT_TUNE;
+       bool x264_speedcontrol = false;
+       bool x264_speedcontrol_verbose = false;
        int x264_bitrate = DEFAULT_X264_OUTPUT_BIT_RATE;  // In kilobit/sec.
        int x264_vbv_max_bitrate = -1;  // In kilobits. 0 = no limit, -1 = same as <x264_bitrate> (CBR).
        int x264_vbv_buffer_size = -1;  // In kilobits. 0 = one-frame VBV, -1 = same as <x264_bitrate> (one-second VBV).
+       std::vector<std::string> x264_extra_param;  // In “key[,value]” format.
+       bool enable_alsa_output = true;
+       std::map<int, int> default_stream_mapping;
+       bool multichannel_mapping_mode = false;  // Implicitly true if input_mapping_filename is nonempty.
+       std::string input_mapping_filename;  // Empty for none.
+       std::string midi_mapping_filename;  // Empty for none.
 };
 extern Flags global_flags;