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

Public Member Functions

 LinearResampler (double sourceSampleRate, double targetSampleRate)
 
unsigned int estimateInLength (const unsigned int outLength) const
 
void process (const FloatSample *&inSamples, unsigned int &inLength, FloatSample *&outSamples, unsigned int &outLength)
 

Member Function Documentation

◆ estimateInLength()

unsigned int SRCTools::LinearResampler::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.

◆ process()

void SRCTools::LinearResampler::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.


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