annotate trunk/src/Modules/Profile/ModuleScaler.h @ 706:f8e90b5d85fd tip

Delete CARFAC code from this repository. It has been moved to https://github.com/google/carfac Please email me with your github username to get access. I've also created a new mailing list to discuss CARFAC development: https://groups.google.com/forum/#!forum/carfac-dev
author ronw@google.com
date Thu, 18 Jul 2013 20:56:51 +0000
parents 30dde71d0230
children
rev   line source
tomwalters@292 1 // Copyright 2010, Thomas Walters
tomwalters@292 2 //
tomwalters@292 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@292 4 // http://www.acousticscale.org/AIMC
tomwalters@292 5 //
tomwalters@318 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@318 7 // you may not use this file except in compliance with the License.
tomwalters@318 8 // You may obtain a copy of the License at
tomwalters@292 9 //
tomwalters@318 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@292 11 //
tomwalters@318 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@318 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@318 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@318 15 // See the License for the specific language governing permissions and
tomwalters@318 16 // limitations under the License.
tomwalters@292 17
tomwalters@292 18 /*!
tomwalters@292 19 * \author Thomas Walters <tom@acousticscale.org>
tomwalters@292 20 * \date created 2010/02/19
tomwalters@292 21 * \version \$Id$
tomwalters@292 22 */
tomwalters@292 23
tomwalters@292 24 #ifndef AIMC_MODULES_PROFILE_SLICE_H_
tomwalters@292 25 #define AIMC_MODULES_PROFILE_SLICE_H_
tomwalters@292 26
tomwalters@292 27 #include "Support/Module.h"
tomwalters@292 28
tomwalters@292 29 namespace aimc {
tomwalters@292 30 using std::vector;
tomwalters@292 31 class ModuleScaler : public Module {
tomwalters@292 32 public:
tomwalters@292 33 explicit ModuleScaler(Parameters *pParam);
tomwalters@292 34 virtual ~ModuleScaler();
tomwalters@292 35
tomwalters@292 36 /*! \brief Process a buffer
tomwalters@292 37 */
tomwalters@292 38 virtual void Process(const SignalBank &input);
tomwalters@292 39
tomwalters@292 40 private:
tomwalters@292 41 /*! \brief Reset the internal state of the module
tomwalters@292 42 */
tomwalters@292 43 virtual void ResetInternal();
tomwalters@292 44
tomwalters@292 45 /*! \brief Prepare the module
tomwalters@292 46 * \param input Input signal
tomwalters@292 47 * \param output true on success false on failure
tomwalters@292 48 */
tomwalters@292 49 virtual bool InitializeInternal(const SignalBank &input);
tomwalters@292 50
tomwalters@292 51 float sample_rate_;
tomwalters@292 52 int buffer_length_;
tomwalters@292 53 int channel_count_;
tomwalters@292 54 };
tomwalters@292 55 } // namespace aimc
tomwalters@292 56
tomwalters@292 57 #endif // AIMC_MODULES_PROFILE_SLICE_H_