annotate branches/carfac_cpp/src/Ear.cpp @ 564:9c4c3675c3f8
* Added class Ear, and moved the CARFAC members AGC CAR IHC into Ear. CARFAC now holds an array of Ear. TBD what is best.
* Moved the files around, and introduced a makefile that builds unittests using GTest. (Note, GTest path is configured in makefile atm.).
- two moronic tests implemented. :)
author |
Ulf.Hammarqvist@gmail.com |
date |
Sun, 20 May 2012 22:36:47 +0000 |
parents |
|
children |
f3dde307f4b8 |
rev |
line source |
Ulf@564
|
1 /*
|
Ulf@564
|
2 * Ear.cpp
|
Ulf@564
|
3 *
|
Ulf@564
|
4 * Created on: 16 maj 2012
|
Ulf@564
|
5 * Author: ulha
|
Ulf@564
|
6 */
|
Ulf@564
|
7
|
Ulf@564
|
8 #include "Ear.h"
|
Ulf@564
|
9 #include "CAR.h"
|
Ulf@564
|
10 #include "IHC.h"
|
Ulf@564
|
11 #include "AGC.h"
|
Ulf@564
|
12
|
Ulf@564
|
13 Ear::Ear(CAR_parameters* car_params, IHC_parameters* ihc_params, AGC_parameters* agc_params, FloatArray pole_freqs, int n_ch, float fs){
|
Ulf@564
|
14 car_params_ = *car_params;
|
Ulf@564
|
15 ihc_params_ = *ihc_params;
|
Ulf@564
|
16 agc_params_ = *agc_params;
|
Ulf@564
|
17
|
Ulf@564
|
18 car_coeffs_p_ = new CAR_coefficients(&car_params_, fs, pole_freqs);
|
Ulf@564
|
19 ihc_coeffs_p_ = new IHC_coefficients(&ihc_params_, fs, n_ch);
|
Ulf@564
|
20 agc_coeffs_p_ = new AGC_coefficients(&agc_params_, fs, n_ch);
|
Ulf@564
|
21 }
|
Ulf@564
|
22
|
Ulf@564
|
23 Ear::~Ear() {
|
Ulf@564
|
24 // TODO Auto-generated destructor stub
|
Ulf@564
|
25 }
|