{ "theme", required_argument, 0, 't' },
{ "va-display", required_argument, 0, 1000 },
{ "http-uncompressed-video", no_argument, 0, 1001 },
+ { "flat-audio", no_argument, 0, 1002 },
{ 0, 0, 0, 0 }
};
for ( ;; ) {
case 1001:
global_flags.uncompressed_video_to_http = true;
break;
+ case 1002:
+ global_flags.flat_audio = true;
+ break;
default:
fprintf(stderr, "Unknown option '%s'\n", argv[option_index]);
exit(1);
std::string va_display;
bool uncompressed_video_to_http = false;
std::string theme_filename = "theme.lua";
+ bool flat_audio = false;
};
extern Flags global_flags;
locut.init(FILTER_HPF, 2);
+ // If --flat-audio is given, turn off everything that messes with the sound,
+ // except the final makeup gain.
+ if (global_flags.flat_audio) {
+ set_locut_enabled(false);
+ set_limiter_enabled(false);
+ set_compressor_enabled(false);
+ }
+
// hlen=16 is pretty low quality, but we use quite a bit of CPU otherwise,
// and there's a limit to how important the peak meter is.
peak_resampler.setup(OUTPUT_FREQUENCY, OUTPUT_FREQUENCY * 4, /*num_channels=*/2, /*hlen=*/16, /*frel=*/1.0);