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