📄 src_32to48.h
字号:
//Include file for 32KHz to 48KHz. Greatest Common Denominator (GCD) = 4/6.
#define HALFB 0 // Half band flag
#define NUPST 1 // Number of up stages
#define PVTFL 1 // Pivot flag
#define NDWNS 0 // Number of down stages
#define STAGE 2 // Number of total stages
#define NINPS 400 // Number of input samples (Should be a even multiple of the GCD
#define NOUTS 600 // Number of output samples (Should be be the same multiple as above of the GCD
#define INTP1 2
#define DOWN1 1
#define LENG1 213 // LENG1 = length of stage filter
#define PLEN1 107 // PLEN1 = MLEN1/INTP1 (polyphase length)
#define MLEN1 214 // MLEN1 = LENG1 + enough to make even length for polyphase
#define SHFT1 0
#define NINP1 NINPS // NINPS (...or NOUTS) 441
#define SZIN1 (NINP1 + ((LENG1-1)/INTP1) + 1) //
#define INTP2 3
#define DOWN2 4
#define LENG2 15 // LENG2 = length of stage filter
#define PLEN2 5 // PLEN2 = MLEN2/INTP2 (polyphase length)
#define MLEN2 15 // MLEN2 = LENG2 + enough to make even length for polyphase
#define SHFT2 0
#define NINP2 ((NINP1*INTP1)/DOWN1) // (NINPx*INTPx)/DOWNx 441*2/1 = 882
#define SZIN2 (NINP2 + ((LENG2-1)/INTP2) + 1) //
#define NINP3 ((NINP2*INTP2)/DOWN2) // (NINPx*INTPx)/DOWNx = 882*80/441 = 160
#define SZIN3 NINP3 + 1 // for last decimation stage only 161
#define OFFS1 (LENG1-1)/(2*DOWN1) //
#define OFFS2 (LENG2-1)/(2*DOWN2) //
#if OFFS2 < 1
#define OF2S2 1
#else
#define OF2S2 OFFS2
#endif
#define TOFS1 OFFS1 //
#define TOFS2 ((INTP2*TOFS1)/DOWN2 + OFFS2) //
//#define T2FS3 57
//#define DOFS2 (NOUTS-TOFS2-1) // Offset used to strip filter delays (zeros) off buffers
#define DOFS3 NOUTS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -