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