tomwalters@20: // Copyright 2010, Thomas Walters tomwalters@20: // tomwalters@20: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@20: // http://www.acousticscale.org/AIMC tomwalters@20: // 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@20: // tomwalters@45: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@20: // 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@20: tomwalters@20: /*! tomwalters@20: * \author Thomas Walters tomwalters@20: * \date created 2010/02/19 tomwalters@20: * \version \$Id$ tomwalters@20: */ tomwalters@20: tomwalters@20: #ifndef AIMC_MODULES_PROFILE_SLICE_H_ tomwalters@20: #define AIMC_MODULES_PROFILE_SLICE_H_ tomwalters@20: tomwalters@20: #include "Support/Module.h" tomwalters@20: tomwalters@20: namespace aimc { tomwalters@20: using std::vector; tomwalters@20: class ModuleScaler : public Module { tomwalters@20: public: tomwalters@20: explicit ModuleScaler(Parameters *pParam); tomwalters@20: virtual ~ModuleScaler(); tomwalters@20: tomwalters@20: /*! \brief Process a buffer tomwalters@20: */ tomwalters@20: virtual void Process(const SignalBank &input); tomwalters@20: tomwalters@20: private: tomwalters@20: /*! \brief Reset the internal state of the module tomwalters@20: */ tomwalters@20: virtual void ResetInternal(); tomwalters@20: tomwalters@20: /*! \brief Prepare the module tomwalters@20: * \param input Input signal tomwalters@20: * \param output true on success false on failure tomwalters@20: */ tomwalters@20: virtual bool InitializeInternal(const SignalBank &input); tomwalters@20: tomwalters@20: float sample_rate_; tomwalters@20: int buffer_length_; tomwalters@20: int channel_count_; tomwalters@20: }; tomwalters@20: } // namespace aimc tomwalters@20: tomwalters@20: #endif // AIMC_MODULES_PROFILE_SLICE_H_