annotate trunk/src/Modules/SSI/ModuleSSI.h @ 284:fb52ca0e6339

-Profile module for taking slices of an SAI or SSI (or anything else for that matter) -Stub SSI module - not yet complete -Fixes to the module template
author tomwalters
date Fri, 19 Feb 2010 13:07:54 +0000
parents
children 4b3a43b543dd
rev   line source
tomwalters@284 1 // Copyright 2010, Thomas Walters
tomwalters@284 2 //
tomwalters@284 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@284 4 // http://www.acousticscale.org/AIMC
tomwalters@284 5 //
tomwalters@284 6 // This program is free software: you can redistribute it and/or modify
tomwalters@284 7 // it under the terms of the GNU General Public License as published by
tomwalters@284 8 // the Free Software Foundation, either version 3 of the License, or
tomwalters@284 9 // (at your option) any later version.
tomwalters@284 10 //
tomwalters@284 11 // This program is distributed in the hope that it will be useful,
tomwalters@284 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@284 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@284 14 // GNU General Public License for more details.
tomwalters@284 15 //
tomwalters@284 16 // You should have received a copy of the GNU General Public License
tomwalters@284 17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
tomwalters@284 18
tomwalters@284 19 /*!
tomwalters@284 20 * \author Thomas Walters <tom@acousticscale.org>
tomwalters@284 21 * \date created 2010/02/19
tomwalters@284 22 * \version \$Id$
tomwalters@284 23 */
tomwalters@284 24
tomwalters@284 25 #ifndef AIMC_MODULES_SSI_SSI_H_
tomwalters@284 26 #define AIMC_MODULES_SSI_SSI_H_
tomwalters@284 27
tomwalters@284 28 #include "Support/Module.h"
tomwalters@284 29
tomwalters@284 30 namespace aimc {
tomwalters@284 31 using std::vector;
tomwalters@284 32 class ModuleSSI : public Module {
tomwalters@284 33 public:
tomwalters@284 34 explicit ModuleSSI(Parameters *pParam);
tomwalters@284 35 virtual ~ModuleSSI();
tomwalters@284 36
tomwalters@284 37 /*! \brief Process a buffer
tomwalters@284 38 */
tomwalters@284 39 virtual void Process(const SignalBank &input);
tomwalters@284 40
tomwalters@284 41 private:
tomwalters@284 42 /*! \brief Reset the internal state of the module
tomwalters@284 43 */
tomwalters@284 44 virtual void ResetInternal();
tomwalters@284 45
tomwalters@284 46 /*! \brief Prepare the module
tomwalters@284 47 * \param input Input signal
tomwalters@284 48 * \param output true on success false on failure
tomwalters@284 49 */
tomwalters@284 50 virtual bool InitializeInternal(const SignalBank &input);
tomwalters@284 51
tomwalters@284 52 float sample_rate_;
tomwalters@284 53 int buffer_length_;
tomwalters@284 54 int channel_count_;
tomwalters@284 55
tomwalters@284 56 bool do_pitch_cutoff_;
tomwalters@284 57 };
tomwalters@284 58 } // namespace aimc
tomwalters@284 59
tomwalters@284 60 #endif // AIMC_MODULES_SSI_SSI_H_