libresample
0.1.3
|
00001 /********************************************************************** 00002 00003 resamplesubs.c 00004 00005 Real-time library interface by Dominic Mazzoni 00006 00007 Based on resample-1.7: 00008 http://www-ccrma.stanford.edu/~jos/resample/ 00009 00010 License: LGPL - see the file LICENSE.txt for more information 00011 00012 **********************************************************************/ 00013 00014 /* Definitions */ 00015 #include "resample_defs.h" 00016 00017 /* 00018 * FilterUp() - Applies a filter to a given sample when up-converting. 00019 * FilterUD() - Applies a filter to a given sample when up- or down- 00020 */ 00021 00022 float lrsFilterUp(float Imp[], float ImpD[], UWORD Nwing, BOOL Interp, 00023 float *Xp, double Ph, int Inc); 00024 00025 float lrsFilterUD(float Imp[], float ImpD[], UWORD Nwing, BOOL Interp, 00026 float *Xp, double Ph, int Inc, double dhb); 00027 00028 void lrsLpFilter(double c[], int N, double frq, double Beta, int Num);