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