LMMS
Loading...
Searching...
No Matches
Fir_Resampler< width > Class Template Reference

#include <Fir_Resampler.h>

Inheritance diagram for Fir_Resampler< width >:
Fir_Resampler_

Public Types

typedef short sample_t
Public Types inherited from Fir_Resampler_
typedef short sample_t

Public Member Functions

 Fir_Resampler ()
int read (sample_t *out, blargg_long count)
Public Member Functions inherited from Fir_Resampler_
double time_ratio (double factor, double rolloff=0.999, double gain=1.0)
double ratio () const
blargg_err_t buffer_size (int)
void clear ()
int max_write () const
sample_tbuffer ()
void write (long count)
int written () const
int skip_input (long count)
int input_needed (blargg_long count) const
int avail () const
 ~Fir_Resampler_ ()

Private Member Functions

 BOOST_STATIC_ASSERT (width >=4 &&width % 2==0)

Private Attributes

short impulses [max_res][width]

Additional Inherited Members

Protected Types inherited from Fir_Resampler_
enum  { stereo = 2 }
enum  { max_res = 32 }
Protected Member Functions inherited from Fir_Resampler_
 Fir_Resampler_ (int width, sample_t *)
int avail_ (blargg_long input_count) const
Protected Attributes inherited from Fir_Resampler_
blargg_vector< sample_tbuf
sample_twrite_pos
int res
int imp_phase
int const width_
int const write_offset
blargg_ulong skip_bits
int step
int input_per_cycle
double ratio_
sample_timpulses

Member Typedef Documentation

◆ sample_t

template<int width>
typedef short Fir_Resampler< width >::sample_t

Constructor & Destructor Documentation

◆ Fir_Resampler()

template<int width>
Fir_Resampler< width >::Fir_Resampler ( )
inline

Member Function Documentation

◆ BOOST_STATIC_ASSERT()

template<int width>
Fir_Resampler< width >::BOOST_STATIC_ASSERT ( width >=4 &&width % 2 = =0)
private

◆ read()

template<int width>
int Fir_Resampler< width >::read ( sample_t * out,
blargg_long count )

Member Data Documentation

◆ impulses

template<int width>
short Fir_Resampler< width >::impulses[max_res][width]
private

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