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