Audio Processing Framework (APF) version 0.5.0
Public Member Functions | List of all members
apf::conv::Convolver Struct Reference

Combination of Input and Output. More...

#include <apf/convolver.h>

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

Public Member Functions

 Convolver (size_t block_size_, size_t partitions_)
 
- Public Member Functions inherited from apf::conv::Input
 Input (size_t block_size_, size_t partitions_)
 
template<typename In >
void add_block (In first)
 Add a block of time-domain input samples. More...
 
size_t partitions () const
 
- Public Member Functions inherited from apf::conv::TransformBase
template<typename In >
void prepare_filter (In first, In last, Filter &filter) const
 Transform time-domain samples. More...
 
size_t block_size () const
 
size_t partition_size () const
 
template<typename In >
In prepare_partition (In first, In last, fft_node &partition) const
 FFT of one block. More...
 
- Public Member Functions inherited from apf::conv::Output
 Output (const Input &input)
 
void set_filter (const Filter &filter)
 Set a new filter. More...
 
bool queues_empty () const
 Check if there are still valid partitions in the queues. More...
 
void rotate_queues ()
 Update filter queues. More...
 
- Public Member Functions inherited from apf::conv::OutputBase
float * convolve (float weight=1.0f)
 Fast convolution of one audio block. More...
 
size_t block_size () const
 
size_t partitions () const
 

Additional Inherited Members

- Public Attributes inherited from apf::conv::Input
fixed_list< fft_nodespectra
 Spectra of the partitions (double-blocks) of the input signal to be convolved. More...
 
- Protected Types inherited from apf::conv::TransformBase
using scoped_plan = fftw< float >::scoped_plan
 
using plan_ptr = std::unique_ptr< scoped_plan >
 
- Protected Types inherited from apf::conv::OutputBase
using filter_ptrs_t = fixed_vector< const fft_node * >
 
- Protected Member Functions inherited from apf::conv::TransformBase
 TransformBase (size_t block_size_)
 
 TransformBase (TransformBase &&)=default
 
plan_ptr _create_plan (float *array) const
 Create in-place FFT plan for halfcomplex data format. More...
 
void _fft (float *first) const
 In-place FFT. More...
 
- Protected Member Functions inherited from apf::conv::OutputBase
 OutputBase (const Input &input)
 
- Protected Attributes inherited from apf::conv::TransformBase
plan_ptr _fft_plan
 
- Protected Attributes inherited from apf::conv::OutputBase
fft_node _empty_partition
 
filter_ptrs_t _filter_ptrs
 

Detailed Description

Combination of Input and Output.

Definition at line 762 of file convolver.h.

Constructor & Destructor Documentation

◆ Convolver()

apf::conv::Convolver::Convolver ( size_t  block_size_,
size_t  partitions_ 
)
inline

Definition at line 764 of file convolver.h.


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