GNU Radio 3.6.4.1 C++ API
globals.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
3
FILE........: globals.h
4
AUTHOR......: David Rowe
5
DATE CREATED: 1/11/94
6
7
Globals for sinusoidal speech coder.
8
9
\*---------------------------------------------------------------------------*/
10
11
/*
12
Copyright (C) 2009 David Rowe
13
14
All rights reserved.
15
16
This program is free software; you can redistribute it and/or modify
17
it under the terms of the GNU Lesser General Public License version 2.1, as
18
published by the Free Software Foundation. This program is
19
distributed in the hope that it will be useful, but WITHOUT ANY
20
WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
22
License for more details.
23
24
You should have received a copy of the GNU Lesser General Public License
25
along with this program; if not, see <http://www.gnu.org/licenses/>.
26
*/
27
28
/* Globals used in encoder and decoder */
29
30
extern
int
frames
;
/* number of frames processed so far */
31
extern
float
Sn
[];
/* float input speech samples */
32
extern
MODEL
model
;
/* model parameters for the current frame */
33
extern
int
Nw
;
/* number of samples in analysis window */
34
extern
float
sig
;
/* energy of current frame */
35
36
/* Globals used in encoder */
37
38
extern
float
w
[];
/* time domain hamming window */
39
extern
COMP
W
[];
/* frequency domain hamming window */
40
extern
COMP
Sw
[];
/* DFT of current frame */
41
extern
COMP
Sw_
[];
/* DFT of all voiced synthesised signal */
42
43
/* Globals used in decoder */
44
45
extern
float
Sn_
[];
/* output synthesised speech samples */
46
extern
float
Pn
[];
/* time domain Parzen (trapezoidal) window */
47
gnuradio
gr-vocoder
lib
codec2
globals.h
Generated by
1.8.1.1