ScummVM API documentation
SRCTools::FIRResampler Class Reference
Inheritance diagram for SRCTools::FIRResampler:
SRCTools::ResamplerStage

Public Member Functions

 FIRResampler (const unsigned int upsampleFactor, const double downsampleFactor, const FIRCoefficient kernel[], const unsigned int kernelLength)
 
void process (const FloatSample *&inSamples, unsigned int &inLength, FloatSample *&outSamples, unsigned int &outLength)
 
unsigned int estimateInLength (const unsigned int outLength) const
 

Member Function Documentation

◆ process()

void SRCTools::FIRResampler::process ( const FloatSample *&  inSamples,
unsigned int &  inLength,
FloatSample *&  outSamples,
unsigned int &  outLength 
)
virtual

Generates output samples. The arguments are adjusted in accordance with the number of samples processed.

Implements SRCTools::ResamplerStage.

◆ estimateInLength()

unsigned int SRCTools::FIRResampler::estimateInLength ( const unsigned int  outLength) const
virtual

Returns a lower estimation of required number of input samples to produce the specified number of output samples.

Implements SRCTools::ResamplerStage.


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