BEAST/BSE - Better Audio System and Sound Engine  0.8.0
 All Classes Namespaces Files Functions Typedefs Defines
Public Member Functions
Bse::Resampler::Downsampler2< ORDER, USE_SSE > Class Template Reference

#include <bseresamplerimpl.hh>

Inheritance diagram for Bse::Resampler::Downsampler2< ORDER, USE_SSE >:
Inheritance graph
[legend]
Collaboration diagram for Bse::Resampler::Downsampler2< ORDER, USE_SSE >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Detailed Description

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

Factor 2 downsampling 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::Downsampler2< ORDER, USE_SSE >::Downsampler2 ( float *  init_taps) [inline]

Constructs a Downsampler2 class using a given set of filter coefficients.

init_taps: coefficients for the downsampling FIR halfband filter


Member Function Documentation

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

Returns the filter order.

template<guint ORDER, bool USE_SSE>
void Bse::Resampler::Downsampler2< 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 half the length, containing downsampled output samples.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Typedefs Defines