GNU Radio 3.5.1 C++ API
globals.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002                                                                              
00003   FILE........: globals.h
00004   AUTHOR......: David Rowe
00005   DATE CREATED: 1/11/94                                                       
00006                                                                              
00007   Globals for sinusoidal speech coder.                                        
00008                                                                              
00009 \*---------------------------------------------------------------------------*/
00010 
00011 /*
00012   Copyright (C) 2009 David Rowe
00013 
00014   All rights reserved.
00015 
00016   This program is free software; you can redistribute it and/or modify
00017   it under the terms of the GNU Lesser General Public License version 2.1, as
00018   published by the Free Software Foundation.  This program is
00019   distributed in the hope that it will be useful, but WITHOUT ANY
00020   WARRANTY; without even the implied warranty of MERCHANTABILITY or
00021   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
00022   License for more details.
00023 
00024   You should have received a copy of the GNU Lesser General Public License
00025   along with this program; if not, see <http://www.gnu.org/licenses/>.
00026 */
00027 
00028 /* Globals used in encoder and decoder */
00029 
00030 extern int frames;      /* number of frames processed so far */
00031 extern float Sn[];      /* float input speech samples */
00032 extern MODEL model;     /* model parameters for the current frame */
00033 extern int Nw;          /* number of samples in analysis window */
00034 extern float sig;       /* energy of current frame */
00035 
00036 /* Globals used in encoder */
00037 
00038 extern float w[];       /* time domain hamming window */
00039 extern COMP W[];        /* frequency domain hamming window */
00040 extern COMP Sw[];       /* DFT of current frame */
00041 extern COMP Sw_[];      /* DFT of all voiced synthesised signal */
00042 
00043 /* Globals used in decoder */
00044 
00045 extern float Sn_[];     /* output synthesised speech samples */
00046 extern float Pn[];      /* time domain Parzen (trapezoidal) window */
00047