tomwalters@20: // Copyright 2010, Thomas Walters tomwalters@20: // tomwalters@20: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@20: // http://www.acousticscale.org/AIMC tomwalters@20: // tomwalters@20: // This program is free software: you can redistribute it and/or modify tomwalters@20: // it under the terms of the GNU General Public License as published by tomwalters@20: // the Free Software Foundation, either version 3 of the License, or tomwalters@20: // (at your option) any later version. tomwalters@20: // tomwalters@20: // This program is distributed in the hope that it will be useful, tomwalters@20: // but WITHOUT ANY WARRANTY; without even the implied warranty of tomwalters@20: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tomwalters@20: // GNU General Public License for more details. tomwalters@20: // tomwalters@20: // You should have received a copy of the GNU General Public License tomwalters@20: // along with this program. If not, see . tomwalters@20: tomwalters@20: /*! tomwalters@20: * \author Thomas Walters tomwalters@20: * \date created 2010/02/19 tomwalters@20: * \version \$Id$ tomwalters@20: */ tomwalters@20: tomwalters@20: #ifndef AIMC_MODULES_PROFILE_SLICE_H_ tomwalters@20: #define AIMC_MODULES_PROFILE_SLICE_H_ tomwalters@20: tomwalters@20: #include "Support/Module.h" tomwalters@20: tomwalters@20: namespace aimc { tomwalters@20: using std::vector; tomwalters@20: class ModuleScaler : public Module { tomwalters@20: public: tomwalters@20: explicit ModuleScaler(Parameters *pParam); tomwalters@20: virtual ~ModuleScaler(); tomwalters@20: tomwalters@20: /*! \brief Process a buffer tomwalters@20: */ tomwalters@20: virtual void Process(const SignalBank &input); tomwalters@20: tomwalters@20: private: tomwalters@20: /*! \brief Reset the internal state of the module tomwalters@20: */ tomwalters@20: virtual void ResetInternal(); tomwalters@20: tomwalters@20: /*! \brief Prepare the module tomwalters@20: * \param input Input signal tomwalters@20: * \param output true on success false on failure tomwalters@20: */ tomwalters@20: virtual bool InitializeInternal(const SignalBank &input); tomwalters@20: tomwalters@20: float sample_rate_; tomwalters@20: int buffer_length_; tomwalters@20: int channel_count_; tomwalters@20: }; tomwalters@20: } // namespace aimc tomwalters@20: tomwalters@20: #endif // AIMC_MODULES_PROFILE_SLICE_H_