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