annotate src/Modules/Profile/ModuleScaler.h @ 646:e76951e4da20

Style fixes. - Fix most lint errors found by http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py - Clean up commenting style. - Alphabetize #includes and using statements.
author ronw@google.com
date Tue, 11 Jun 2013 20:41:15 +0000
parents c5f5e9569863
children
rev   line source
tomwalters@20 1 // Copyright 2010, Thomas Walters
tomwalters@20 2 //
tomwalters@20 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@20 4 // http://www.acousticscale.org/AIMC
tomwalters@20 5 //
tomwalters@45 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@45 7 // you may not use this file except in compliance with the License.
tomwalters@45 8 // You may obtain a copy of the License at
tomwalters@20 9 //
tomwalters@45 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@20 11 //
tomwalters@45 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@45 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@45 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@45 15 // See the License for the specific language governing permissions and
tomwalters@45 16 // limitations under the License.
tomwalters@20 17
tomwalters@20 18 /*!
tomwalters@20 19 * \author Thomas Walters <tom@acousticscale.org>
tomwalters@20 20 * \date created 2010/02/19
tomwalters@20 21 * \version \$Id$
tomwalters@20 22 */
tomwalters@20 23
tomwalters@20 24 #ifndef AIMC_MODULES_PROFILE_SLICE_H_
tomwalters@20 25 #define AIMC_MODULES_PROFILE_SLICE_H_
tomwalters@20 26
tomwalters@20 27 #include "Support/Module.h"
tomwalters@20 28
tomwalters@20 29 namespace aimc {
tomwalters@20 30 using std::vector;
tomwalters@20 31 class ModuleScaler : public Module {
tomwalters@20 32 public:
tomwalters@20 33 explicit ModuleScaler(Parameters *pParam);
tomwalters@20 34 virtual ~ModuleScaler();
tomwalters@20 35
tomwalters@20 36 /*! \brief Process a buffer
tomwalters@20 37 */
tomwalters@20 38 virtual void Process(const SignalBank &input);
tomwalters@20 39
tomwalters@20 40 private:
tomwalters@20 41 /*! \brief Reset the internal state of the module
tomwalters@20 42 */
tomwalters@20 43 virtual void ResetInternal();
tomwalters@20 44
tomwalters@20 45 /*! \brief Prepare the module
tomwalters@20 46 * \param input Input signal
tomwalters@20 47 * \param output true on success false on failure
tomwalters@20 48 */
tomwalters@20 49 virtual bool InitializeInternal(const SignalBank &input);
tomwalters@20 50
tomwalters@20 51 float sample_rate_;
tomwalters@20 52 int buffer_length_;
tomwalters@20 53 int channel_count_;
tomwalters@20 54 };
tomwalters@20 55 } // namespace aimc
tomwalters@20 56
tomwalters@20 57 #endif // AIMC_MODULES_PROFILE_SLICE_H_