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

The resampler class for 24-bit resampling. More...

#include <CDSPResampler.h>

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

Public Member Functions

 CDSPResampler24 (const double SrcSampleRate, const double DstSampleRate, const int aMaxInLen, const double ReqTransBand=2.0)
 Constructor initializes the 24-bit resampler (including 32-bit floating point). 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 24-bit resampling.

This class defines resampling parameters suitable for 24-bit resampling (including 32-bit floating point resampling), using linear-phase low-pass filter. See the r8b::CDSPResampler class for details.

Constructor & Destructor Documentation

◆ CDSPResampler24()

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

Constructor initializes the 24-bit resampler (including 32-bit floating point).

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: