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