From e59d0d8e8d8b5998e2a457deee41c59c030a074f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 11 Sep 2022 08:01:12 +0200 Subject: Add --vlc-gain option for compatibility --- src/odr-audioenc.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/odr-audioenc.cpp') diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp index 68a99a1..e3708c1 100644 --- a/src/odr-audioenc.cpp +++ b/src/odr-audioenc.cpp @@ -1370,6 +1370,7 @@ int main(int argc, char *argv[]) {"bitrate", required_argument, 0, 'b'}, {"bandwidth", required_argument, 0, 'B'}, {"audio-gain", required_argument, 0, 'g'}, + {"vlc-gain", required_argument, 0, 10 }, // backward-compatibility to v3 {"channels", required_argument, 0, 'c'}, {"dabmode", required_argument, 0, 4 }, {"dabpsy", required_argument, 0, 5 }, @@ -1532,6 +1533,9 @@ int main(int argc, char *argv[]) return 1; } break; + case 10: + fprintf(stderr, "WARNING: the --vlc-gain option has been deprecated in favour of --audio-gain\n"); + // fallthrough case 'g': audio_enc.gain_dB = std::stod(optarg); break; -- cgit v1.2.3