// SONIC ROBO BLAST 2 //----------------------------------------------------------------------------- // Copyright (C) 2022-2023 by Ronald "Eidolon" Kinard // // This program is free software distributed under the // terms of the GNU General Public License, version 2. // See the 'LICENSE' file for more details. //----------------------------------------------------------------------------- #ifndef __SRB2_AUDIO_GAIN_HPP__ #define __SRB2_AUDIO_GAIN_HPP__ #include #include "filter.hpp" namespace srb2::audio { template class Gain : public Filter { public: virtual std::size_t filter(tcb::span> input_buffer, tcb::span> buffer) override final; void gain(float new_gain); virtual ~Gain(); private: float new_gain_ {1.f}; float gain_ {1.f}; }; } // namespace srb2::audio #endif // __SRB2_AUDIO_GAIN_HPP__