Flan
Public Member Functions | List of all members
r8b::CDSPResampler16IR Class Reference

The resampler class for 16-bit impulse response resampling. More...

#include <CDSPResampler.h>

Inheritance diagram for r8b::CDSPResampler16IR:
Inheritance graph
[legend]
Collaboration diagram for r8b::CDSPResampler16IR:
Collaboration graph
[legend]

Public Member Functions

 CDSPResampler16IR (const double SrcSampleRate, const double DstSampleRate, const int aMaxInLen, const double ReqTransBand=2.0)
 Constructor initializes the 16-bit impulse response resampler. More...
 
- Public Member Functions inherited from r8b::CDSPResampler
 CDSPResampler (const double SrcSampleRate, const double DstSampleRate, const int aMaxInLen, const double ReqTransBand=2.0, const double ReqAtten=206.91, const EDSPFilterPhaseResponse ReqPhase=fprLinearPhase)
 Constructor initalizes the resampler object. More...
 
virtual int getLatency () const
 
virtual double getLatencyFrac () const
 
virtual int getMaxOutLen (const int) const
 This function ignores the supplied parameter and returns the maximal output buffer length that depends on the MaxInLen supplied to the constructor.
 
virtual void clear ()
 Function clears (resets) the state of *this object and returns it to the state after construction. More...
 
virtual int process (double *ip0, int l, double *&op0)
 Function performs sample rate conversion. More...
 
template<class Tin , class Tout >
void oneshot (const Tin *ip, int iplen, Tout *op, int oplen)
 Function performs resampling of an input sample buffer of the specified length in the "one-shot" mode. More...
 
int getInLenBeforeOutStart ()
 Function obtains overall input sample count required to produce first output sample. More...
 

Detailed Description

The resampler class for 16-bit impulse response resampling.

This class defines resampling parameters suitable for 16-bit impulse response resampling, using linear-phase low-pass filter. Impulse responses usually do not feature stationary signal components and thus need resampler with a less SNR. See the r8b::CDSPResampler class for details.

Constructor & Destructor Documentation

◆ CDSPResampler16IR()

r8b::CDSPResampler16IR::CDSPResampler16IR ( const double  SrcSampleRate,
const double  DstSampleRate,
const int  aMaxInLen,
const double  ReqTransBand = 2.0 
)
inline

Constructor initializes the 16-bit impulse response resampler.

See the r8b::CDSPResampler class for details.

Parameters
SrcSampleRateSource signal sample rate.
DstSampleRateDestination signal sample rate.
aMaxInLenThe maximal planned length of the input buffer (in samples) that will be passed to the resampler.
ReqTransBandRequired transition band, in percent.

The documentation for this class was generated from the following file: