Audio Processing Framework (APF) version 0.5.0
Public Member Functions | List of all members
apf::CombineChannelsCrossfade< L, Out, Crossfade > Class Template Reference

Combine channels: transform, crossfade and accumulate. More...

#include <apf/combine_channels.h>

Inheritance diagram for apf::CombineChannelsCrossfade< L, Out, Crossfade >:
Inheritance graph
[legend]

Public Member Functions

 CombineChannelsCrossfade (const L &in, Out &out, const Crossfade &fade)
 
template<typename ItemType , typename F >
void case_one (const ItemType &item, F &f)
 
template<typename ItemType , typename F >
void case_two (ItemType &item, F &f)
 
- Public Member Functions inherited from apf::CombineChannelsCrossfadeBase< CombineChannelsCrossfade< L, Out, Crossfade >, L, Out, Crossfade >
 CombineChannelsCrossfadeBase (const L &in, Out &out, const Crossfade &fade)
 
void before_the_loop ()
 
void after_the_loop ()
 
- Public Member Functions inherited from apf::CombineChannelsBase< CombineChannelsCrossfade< L, Out, Crossfade >, L, Out >
 CombineChannelsBase (L &in, Out &out)
 Constructor. More...
 
void process (F f)
 Do the actual combining. More...
 
void before_the_loop ()
 
void case_one (const ItemType &, F &)
 
void case_two (const ItemType &, F &)
 
void after_the_loop ()
 
- Public Member Functions inherited from apf::CRTP< CombineChannelsCrossfade< L, Out, Crossfade > >
CombineChannelsCrossfade< L, Out, Crossfade > & derived ()
 

Additional Inherited Members

- Protected Types inherited from apf::CombineChannelsBase< CombineChannelsCrossfade< L, Out, Crossfade >, L, Out >
using T = typename std::iterator_traits< typename std::remove_reference< L >::type::value_type::iterator >::value_type
 
- Protected Member Functions inherited from apf::CombineChannelsBase< CombineChannelsCrossfade< L, Out, Crossfade >, L, Out >
void _case_one_copy (const ItemType &item)
 
void _case_one_transform (const ItemType &item, FunctionType &f)
 
- Protected Member Functions inherited from apf::CRTP< CombineChannelsCrossfade< L, Out, Crossfade > >
 ~CRTP ()=default
 Protected destructor to avoid base class pointers. More...
 
- Protected Attributes inherited from apf::CombineChannelsCrossfadeBase< CombineChannelsCrossfade< L, Out, Crossfade >, L, Out, Crossfade >
bool _accumulate_fade_in
 
bool _accumulate_fade_out
 
std::vector< T > _fade_out_buffer
 
std::vector< T > _fade_in_buffer
 
- Protected Attributes inherited from apf::CombineChannelsBase< CombineChannelsCrossfade< L, Out, Crossfade >, L, Out >
Out & _out
 
CombineChannelsResult::type _selection
 
bool _accumulate
 

Detailed Description

template<typename L, typename Out, typename Crossfade>
class apf::CombineChannelsCrossfade< L, Out, Crossfade >

Combine channels: transform, crossfade and accumulate.

Definition at line 412 of file combine_channels.h.

Constructor & Destructor Documentation

◆ CombineChannelsCrossfade()

template<typename L , typename Out , typename Crossfade >
apf::CombineChannelsCrossfade< L, Out, Crossfade >::CombineChannelsCrossfade ( const L &  in,
Out &  out,
const Crossfade &  fade 
)
inline

Definition at line 423 of file combine_channels.h.

Member Function Documentation

◆ case_one()

template<typename L , typename Out , typename Crossfade >
template<typename ItemType , typename F >
void apf::CombineChannelsCrossfade< L, Out, Crossfade >::case_one ( const ItemType &  item,
F &  f 
)
inline

Definition at line 428 of file combine_channels.h.

◆ case_two()

template<typename L , typename Out , typename Crossfade >
template<typename ItemType , typename F >
void apf::CombineChannelsCrossfade< L, Out, Crossfade >::case_two ( ItemType &  item,
F &  f 
)
inline

Definition at line 434 of file combine_channels.h.


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