Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
Bse::Resampler::Upsampler2< ORDER, USE_SSE > Class Template Reference

#include <bseresamplerimpl.hh>

Inheritance diagram for Bse::Resampler::Upsampler2< ORDER, USE_SSE >:
Collaboration diagram for Bse::Resampler::Upsampler2< ORDER, USE_SSE >:

Public Member Functions

 Upsampler2 (float *init_taps)
 
void process_block (const float *input, guint n_input_samples, float *output)
 
guint order () const
 
double delay () const
 

Protected Member Functions

void process_4samples_aligned (const float *input, float *output)
 
void process_sample_unaligned (const float *input, float *output)
 
void process_block_aligned (const float *input, guint n_input_samples, float *output)
 
void process_block_unaligned (const float *input, guint n_input_samples, float *output)
 

Detailed Description

template<guint ORDER, bool USE_SSE>
class Bse::Resampler::Upsampler2< ORDER, USE_SSE >

Factor 2 upsampling of a data stream.

Template arguments: ORDER number of resampling filter coefficients USE_SSE whether to use SSE (vectorized) instructions or not

Constructor & Destructor Documentation

template<guint ORDER, bool USE_SSE>
Bse::Resampler::Upsampler2< ORDER, USE_SSE >::Upsampler2 ( float init_taps)
inline

Constructs an Upsampler2 object with a given set of filter coefficients.

init_taps: coefficients for the upsampling FIR halfband filter

Member Function Documentation

template<guint ORDER, bool USE_SSE>
guint Bse::Resampler::Upsampler2< ORDER, USE_SSE >::order ( ) const
inline

Returns the FIR filter order.

template<guint ORDER, bool USE_SSE>
void Bse::Resampler::Upsampler2< ORDER, USE_SSE >::process_block ( const float input,
guint  n_input_samples,
float output 
)
inline

The function process_block() takes a block of input samples and produces a block with twice the length, containing interpolated output samples.

Here is the call graph for this function:


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