diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-09-06 13:48:40 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-09-06 13:48:40 +0200 |
commit | f828749c289bad5978ff3e7a8100c9a5c65b8970 (patch) | |
tree | f4c1ab0c788f940b0422dabb5b95d535de299837 /src/VLCInput.cpp | |
parent | 7544d1eca9f33f450d2bf3e36b9df298cd7c23d9 (diff) | |
download | ODR-AudioEnc-f828749c289bad5978ff3e7a8100c9a5c65b8970.tar.gz ODR-AudioEnc-f828749c289bad5978ff3e7a8100c9a5c65b8970.tar.bz2 ODR-AudioEnc-f828749c289bad5978ff3e7a8100c9a5c65b8970.zip |
Replace libvlc compressor gain by internal gain calculation
Diffstat (limited to 'src/VLCInput.cpp')
-rw-r--r-- | src/VLCInput.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 0547696..ca44f04 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -1,5 +1,5 @@ /* ------------------------------------------------------------------ - * Copyright (C) 2018 Matthias P. Braendli + * Copyright (C) 2022 Matthias P. Braendli * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -169,10 +169,6 @@ void VLCInput::prepare() vlc_args.push_back("--network-caching=" + m_cache); } - if (not m_gain.empty()) { - vlc_args.push_back("--compressor-makeup=" + m_gain); - } - copy(m_additional_opts.begin(), m_additional_opts.end(), back_inserter(vlc_args)); @@ -204,9 +200,6 @@ void VLCInput::prepare() std::stringstream transcode_options_ss; transcode_options_ss << "acodec=fl32"; transcode_options_ss << ",samplerate=" << m_rate; - if (not m_gain.empty()) { - transcode_options_ss << ",afilter=compressor"; - } string transcode_options = transcode_options_ss.str(); char smem_options[512]; |