summaryrefslogtreecommitdiff
path: root/sine.h
diff options
context:
space:
mode:
Diffstat (limited to 'sine.h')
-rw-r--r--sine.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sine.h b/sine.h
index 21d21fb..3f709b2 100644
--- a/sine.h
+++ b/sine.h
@@ -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
35C2CONST c2const_create(int Fs, float framelength_ms); 35C2CONST c2const_create(int Fs, float framelength_ms);
36 36
37void make_analysis_window(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg, float w[], float W[]); 37void make_analysis_window(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg,
38 float w[], float W[]);
38float hpf(float x, float states[]); 39float hpf(float x, float states[]);
39void dft_speech(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg, COMP Sw[], float Sn[], float w[]); 40void dft_speech(C2CONST *c2const, codec2_fft_cfg fft_fwd_cfg, COMP Sw[],
41 float Sn[], float w[]);
40void two_stage_pitch_refinement(C2CONST *c2const, MODEL *model, COMP Sw[]); 42void two_stage_pitch_refinement(C2CONST *c2const, MODEL *model, COMP Sw[]);
41void estimate_amplitudes(MODEL *model, COMP Sw[], float W[], int est_phase); 43void estimate_amplitudes(MODEL *model, COMP Sw[], float W[], int est_phase);
42float est_voicing_mbe(C2CONST *c2const, MODEL *model, COMP Sw[], float W[]); 44float est_voicing_mbe(C2CONST *c2const, MODEL *model, COMP Sw[], float W[]);
43void make_synthesis_window(C2CONST *c2const, float Pn[]); 45void make_synthesis_window(C2CONST *c2const, float Pn[]);
44void synthesise(int n_samp, codec2_fftr_cfg fftr_inv_cfg, float Sn_[], MODEL *model, float Pn[], int shift); 46void 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
47int codec2_rand(void); 50int codec2_rand(void);