libresample  0.1.3
filterkit.h
1 /**********************************************************************
2 
3  resamplesubs.c
4 
5  Real-time library interface by Dominic Mazzoni
6 
7  Based on resample-1.7:
8  http://www-ccrma.stanford.edu/~jos/resample/
9 
10  License: LGPL - see the file LICENSE.txt for more information
11 
12 **********************************************************************/
13 
14 /* Definitions */
15 #include "resample_defs.h"
16 
17 /*
18  * FilterUp() - Applies a filter to a given sample when up-converting.
19  * FilterUD() - Applies a filter to a given sample when up- or down-
20  */
21 
22 float lrsFilterUp(float Imp[], float ImpD[], UWORD Nwing, BOOL Interp,
23  float *Xp, double Ph, int Inc);
24 
25 float lrsFilterUD(float Imp[], float ImpD[], UWORD Nwing, BOOL Interp,
26  float *Xp, double Ph, int Inc, double dhb);
27 
28 void lrsLpFilter(double c[], int N, double frq, double Beta, int Num);