cmProc.h/c : Added kSlRejIsBetaWndFl for use in cmWndFuncInit().

This commit is contained in:
Kevin Larke 2015-05-22 13:56:54 -07:00
parent 91c88a4ec7
commit 72bfc7442f
2 changed files with 9 additions and 2 deletions

View File

@ -443,7 +443,13 @@ cmRC_t cmWndFuncInit( cmWndFunc* p, unsigned wndId, unsigned wndSmpCnt, do
case kUnityWndId: cmVOS_Fill( p->wndV, p->outN, 1.0 ); break;
case kKaiserWndId:
{
double beta = cmVOS_KaiserBetaFromSidelobeReject(fabs(kslRejectDb));
double beta;
if( cmIsFlag(wndId,kSlRejIsBetaWndFl) )
beta = kslRejectDb;
else
beta = cmVOS_KaiserBetaFromSidelobeReject(fabs(kslRejectDb));
cmVOS_Kaiser( p->wndV,p->outN, beta);
}
break;

View File

@ -158,7 +158,8 @@ extern "C" {
kWndIdMask = 0x0ff,
kNormByLengthWndFl = 0x100, // mult by 1/wndSmpCnt
kNormBySumWndFl = 0x200 // mult by wndSmpCnt/sum(wndV)
kNormBySumWndFl = 0x200, // mult by wndSmpCnt/sum(wndV)
kSlRejIsBetaWndFl = 0x400 // kaiserSideLobeRejectDb param. is actually kaiser beta arg.
};
typedef struct