svcore  1.9
Resampler::D Class Reference

Public Member Functions

 D (Quality quality, int channels, int chunkSize)
 
 ~D ()
 
int resample (float **in, float **out, int incount, float ratio, bool final)
 
int resampleInterleaved (float *in, float *out, int incount, float ratio, bool final)
 
void reset ()
 

Protected Attributes

SRC_STATE * m_src
 
float * m_iin
 
float * m_iout
 
int m_channels
 
int m_iinsize
 
int m_ioutsize
 

Detailed Description

Definition at line 31 of file Resampler.cpp.

Constructor & Destructor Documentation

◆ D()

Resampler::D::D ( Quality  quality,
int  channels,
int  chunkSize 
)

!! check err, throw

!! alignment?

Definition at line 56 of file Resampler.cpp.

References Resampler::Best, Resampler::Fastest, m_channels, m_iin, m_iinsize, m_iout, m_ioutsize, and m_src.

◆ ~D()

Resampler::D::~D ( )

Definition at line 81 of file Resampler.cpp.

Member Function Documentation

◆ resample()

int Resampler::D::resample ( float **  in,
float **  out,
int  incount,
float  ratio,
bool  final 
)

Definition at line 93 of file Resampler.cpp.

References Resampler::resampleInterleaved().

Referenced by Resampler::resample().

◆ resampleInterleaved()

int Resampler::D::resampleInterleaved ( float *  in,
float *  out,
int  incount,
float  ratio,
bool  final 
)

Definition at line 129 of file Resampler.cpp.

Referenced by Resampler::resampleInterleaved().

◆ reset()

void Resampler::D::reset ( )

Definition at line 160 of file Resampler.cpp.

Referenced by Resampler::reset().

Member Data Documentation

◆ m_src

SRC_STATE* Resampler::D::m_src
protected

Definition at line 48 of file Resampler.cpp.

Referenced by D().

◆ m_iin

float* Resampler::D::m_iin
protected

Definition at line 49 of file Resampler.cpp.

Referenced by D().

◆ m_iout

float* Resampler::D::m_iout
protected

Definition at line 50 of file Resampler.cpp.

Referenced by D().

◆ m_channels

int Resampler::D::m_channels
protected

Definition at line 51 of file Resampler.cpp.

Referenced by D().

◆ m_iinsize

int Resampler::D::m_iinsize
protected

Definition at line 52 of file Resampler.cpp.

Referenced by D().

◆ m_ioutsize

int Resampler::D::m_ioutsize
protected

Definition at line 53 of file Resampler.cpp.

Referenced by D().


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