Audio Processing Framework (APF) version 0.5.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
apf::conv::OutputBase Class Reference

Base class for Output and StaticOutput. More...

#include <apf/convolver.h>

Inheritance diagram for apf::conv::OutputBase:
Inheritance graph
[legend]

Public Member Functions

float * convolve (float weight=1.0f)
 Fast convolution of one audio block. More...
 
size_t block_size () const
 
size_t partitions () const
 

Protected Types

using filter_ptrs_t = fixed_vector< const fft_node * >
 

Protected Member Functions

 OutputBase (const Input &input)
 

Protected Attributes

fft_node _empty_partition
 
filter_ptrs_t _filter_ptrs
 

Detailed Description

Base class for Output and StaticOutput.

Definition at line 390 of file convolver.h.

Member Typedef Documentation

◆ filter_ptrs_t

Definition at line 404 of file convolver.h.

Constructor & Destructor Documentation

◆ OutputBase()

apf::conv::OutputBase::OutputBase ( const Input input)
explicitprotected

Definition at line 426 of file convolver.h.

Member Function Documentation

◆ convolve()

float * apf::conv::OutputBase::convolve ( float  weight = 1.0f)

Fast convolution of one audio block.

Input data has to be supplied with Input::add_block().

Parameters
weightamplitude weighting factor for current audio block. The filter has to be set in the constructor of StaticOutput or via Output::set_filter().
Returns
pointer to the first sample of the convolved (and weighted) signal

Definition at line 448 of file convolver.h.

References apf::conv::fft_node::zero.

◆ block_size()

size_t apf::conv::OutputBase::block_size ( ) const
inline

Definition at line 395 of file convolver.h.

◆ partitions()

size_t apf::conv::OutputBase::partitions ( ) const
inline

Definition at line 396 of file convolver.h.

Member Data Documentation

◆ _empty_partition

fft_node apf::conv::OutputBase::_empty_partition
protected

Definition at line 402 of file convolver.h.

◆ _filter_ptrs

filter_ptrs_t apf::conv::OutputBase::_filter_ptrs
protected

Definition at line 405 of file convolver.h.


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