diff options
Diffstat (limited to 'sine.h')
-rw-r--r-- | sine.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -28,20 +28,23 @@ | |||
28 | #ifndef __SINE__ | 28 | #ifndef __SINE__ |
29 | #define __SINE__ | 29 | #define __SINE__ |
30 | 30 | ||
31 | #include "defines.h" | ||
32 | #include "comp.h" | ||
33 | #include "codec2_fft.h" | 31 | #include "codec2_fft.h" |
32 | #include "comp.h" | ||
33 | #include "defines.h" | ||
34 | 34 | ||
35 | C2CONST c2const_create(int Fs, float framelength_ms); | 35 | C2CONST c2const_create(int Fs, float framelength_ms); |
36 | 36 | ||
37 | void make_analysis_window(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg, float w[], float W[]); | 37 | void make_analysis_window(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg, |
38 | float w[], float W[]); | ||
38 | float hpf(float x, float states[]); | 39 | float hpf(float x, float states[]); |
39 | void dft_speech(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg, COMP Sw[], float Sn[], float w[]); | 40 | void dft_speech(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg, COMP Sw[], |
41 | float Sn[], float w[]); | ||
40 | void two_stage_pitch_refinement(C2CONST *c2const, MODEL *model, COMP Sw[]); | 42 | void two_stage_pitch_refinement(C2CONST *c2const, MODEL *model, COMP Sw[]); |
41 | void estimate_amplitudes(MODEL *model, COMP Sw[], float W[], int est_phase); | 43 | void estimate_amplitudes(MODEL *model, COMP Sw[], float W[], int est_phase); |
42 | float est_voicing_mbe(C2CONST *c2const, MODEL *model, COMP Sw[], float W[]); | 44 | float est_voicing_mbe(C2CONST *c2const, MODEL *model, COMP Sw[], float W[]); |
43 | void make_synthesis_window(C2CONST *c2const, float Pn[]); | 45 | void make_synthesis_window(C2CONST *c2const, float Pn[]); |
44 | void synthesise(int n_samp, codec2_fftr_cfg fftr_inv_cfg, float Sn_[], MODEL *model, float Pn[], int shift); | 46 | void synthesise(int n_samp, codec2_fftr_cfg fftr_inv_cfg, float Sn_[], |
47 | MODEL *model, float Pn[], int shift); | ||
45 | 48 | ||
46 | #define CODEC2_RAND_MAX 32767 | 49 | #define CODEC2_RAND_MAX 32767 |
47 | int codec2_rand(void); | 50 | int codec2_rand(void); |