1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
/*
* Copyright © 2017-2020 Wellington Wallace
*
* This file is part of PulseEffects.
*
* PulseEffects is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PulseEffects is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PulseEffects. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef SINK_INPUT_EFFECTS_HPP
#define SINK_INPUT_EFFECTS_HPP
#include "autogain.hpp"
#include "bass_enhancer.hpp"
#include "convolver.hpp"
#include "crossfeed.hpp"
#include "crystalizer.hpp"
#include "delay.hpp"
#include "exciter.hpp"
#include "loudness.hpp"
#include "multiband_compressor.hpp"
#include "multiband_gate.hpp"
#include "pipeline_base.hpp"
#include "pulse_manager.hpp"
class SinkInputEffects : public PipelineBase {
public:
SinkInputEffects(PulseManager* pulse_manager);
SinkInputEffects(const SinkInputEffects&) = delete;
auto operator=(const SinkInputEffects&) -> SinkInputEffects& = delete;
SinkInputEffects(const SinkInputEffects&&) = delete;
auto operator=(const SinkInputEffects&&) -> SinkInputEffects& = delete;
~SinkInputEffects() override;
std::unique_ptr<BassEnhancer> bass_enhancer;
std::unique_ptr<Exciter> exciter;
std::unique_ptr<Crossfeed> crossfeed;
std::unique_ptr<MultibandCompressor> multiband_compressor;
std::unique_ptr<Loudness> loudness;
std::unique_ptr<MultibandGate> multiband_gate;
std::unique_ptr<Convolver> convolver;
std::unique_ptr<Crystalizer> crystalizer;
std::unique_ptr<AutoGain> autogain;
std::unique_ptr<Delay> delay;
sigc::signal<void, std::array<double, 2>> bass_enhancer_input_level;
sigc::signal<void, std::array<double, 2>> bass_enhancer_output_level;
sigc::signal<void, std::array<double, 2>> exciter_input_level;
sigc::signal<void, std::array<double, 2>> exciter_output_level;
sigc::signal<void, std::array<double, 2>> crossfeed_input_level;
sigc::signal<void, std::array<double, 2>> crossfeed_output_level;
sigc::signal<void, std::array<double, 2>> loudness_input_level;
sigc::signal<void, std::array<double, 2>> loudness_output_level;
sigc::signal<void, std::array<double, 2>> convolver_input_level;
sigc::signal<void, std::array<double, 2>> convolver_output_level;
sigc::signal<void, std::array<double, 2>> crystalizer_input_level;
sigc::signal<void, std::array<double, 2>> crystalizer_output_level;
sigc::signal<void, std::array<double, 2>> autogain_input_level;
sigc::signal<void, std::array<double, 2>> autogain_output_level;
sigc::signal<void, std::array<double, 2>> delay_input_level;
sigc::signal<void, std::array<double, 2>> delay_output_level;
private:
void add_plugins_to_pipeline();
void on_app_added(const std::shared_ptr<AppInfo>& app_info);
};
#endif
|