r8brain-free-src
High-quality pro audio sample rate converter library
Loading...
Searching...
No Matches
Static Public Member Functions | Friends | List of all members
r8b::CDSPFracDelayFilterBankCache Class Reference

Fractional delay filter cache class. More...

#include <CDSPFracInterpolator.h>

Inheritance diagram for r8b::CDSPFracDelayFilterBankCache:

Static Public Member Functions

static CDSPFracDelayFilterBankgetFilterBank (const int aFilterFracs, const int aElementSize, const int aInterpPoints, double ReqAtten, const bool IsThird, const bool IsStatic)
 
static int getObjCount ()
 

Friends

class CDSPFracDelayFilterBank
 

Detailed Description

Fractional delay filter cache class.

Class implements cache storage of fractional delay filter banks.

Member Function Documentation

◆ getFilterBank()

static CDSPFracDelayFilterBank & r8b::CDSPFracDelayFilterBankCache::getFilterBank ( const int  aFilterFracs,
const int  aElementSize,
const int  aInterpPoints,
double  ReqAtten,
const bool  IsThird,
const bool  IsStatic 
)
static

Function calculates or returns reference to a previously calculated (cached) fractional delay filter bank.

Parameters
aFilterFracsThe number of fractional delay positions to sample, -1 - use default.
aElementSizeThe size of each filter's tap, in "double" values.
aInterpPointsThe number of points the interpolation is based on.
ReqAttenRequired filter attentuation.
IsThird"True" if one-third filter is required.
IsStatic"True" if a permanent static filter should be returned that is never removed from the cache until application terminates.
Returns
Reference to a filter bank.

◆ getObjCount()

static int r8b::CDSPFracDelayFilterBankCache::getObjCount ( )
static
Returns
The number of filters present in the cache now. This value can be monitored for debugging "forgotten" filters.