annotate doc/ModuleTemplate.h @ 266:35987061c93b

small bug in /swig/audio_example.py
author hamel.phil
date Thu, 13 Jan 2011 18:49:40 +0000
parents c5f5e9569863
children
rev   line source
tomwalters@11 1 // Copyright #YEAR#, #AUTHOR_NAME#
tomwalters@11 2 //
tomwalters@11 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@11 4 // http://www.acousticscale.org/AIMC
tomwalters@11 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@11 9 //
tomwalters@45 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@11 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@11 17
tomwalters@11 18 /*!
tomwalters@11 19 * \author #AUTHOR_NAME# <#AUTHOR_EMAIL_ADDRESS#>
tomwalters@11 20 * \date created #TODAYS_DATE#
tomwalters@11 21 * \version \$Id$
tomwalters@11 22 */
tomwalters@11 23
tomwalters@11 24 #ifndef AIMC_MODULES_#MODULE_TYPE_CAPS#_#MODULE_ID_CAPS#_H_
tomwalters@11 25 #define AIMC_MODULES_#MODULE_TYPE_CAPS#_#MODULE_ID_CAPS#_H_
tomwalters@11 26
tomwalters@11 27 #include "Support/Module.h"
tomwalters@11 28
tomwalters@11 29 namespace aimc {
tomwalters@11 30 class #MODULE_NAME# : public Module {
tomwalters@11 31 public:
tomwalters@11 32 explicit #MODULE_NAME#(Parameters *pParam);
tomwalters@11 33 virtual ~#MODULE_NAME#();
tomwalters@11 34
tomwalters@11 35 /*! \brief Process a buffer
tomwalters@11 36 */
tomwalters@11 37 virtual void Process(const SignalBank &input);
tomwalters@11 38
tomwalters@11 39 private:
tomwalters@11 40 /*! \brief Reset the internal state of the module
tomwalters@11 41 */
tomwalters@11 42 virtual void ResetInternal();
tomwalters@11 43
tomwalters@11 44 /*! \brief Prepare the module
tomwalters@11 45 * \param input Input signal
tomwalters@11 46 * \param output true on success false on failure
tomwalters@11 47 */
tomwalters@11 48 virtual bool InitializeInternal(const SignalBank &input);
tomwalters@11 49
tomwalters@11 50 float sample_rate_;
tomwalters@11 51 int buffer_length_;
tomwalters@11 52 int channel_count_;
tomwalters@11 53 };
tomwalters@11 54 } // namespace aimc
tomwalters@11 55
tomwalters@11 56 #endif // AIMC_MODULES_#MODULE_TYPE_CAPS#_#MODULE_ID_CAPS#_H_