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@318: // Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@318: // you may not use this file except in compliance with the License. tomwalters@318: // You may obtain a copy of the License at tomwalters@283: // tomwalters@318: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@283: // tomwalters@318: // Unless required by applicable law or agreed to in writing, software tomwalters@318: // distributed under the License is distributed on an "AS IS" BASIS, tomwalters@318: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@318: // See the License for the specific language governing permissions and tomwalters@318: // limitations under the License. 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: 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_