From f828749c289bad5978ff3e7a8100c9a5c65b8970 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 6 Sep 2022 13:48:40 +0200 Subject: Replace libvlc compressor gain by internal gain calculation --- src/VLCInput.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/VLCInput.cpp') 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]; -- cgit v1.2.3