arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
CallbackConverterT< T > Class Template Reference

You can provide a lambda expression to convert the data. More...

#include <BaseConverter.h>

Inheritance diagram for CallbackConverterT< T >:
BaseConverter

Public Member Functions

 CallbackConverterT (T(*callback)(T in, int channel), int channels=2)
 
size_t convert (uint8_t *src, size_t size)
 

Protected Attributes

T(* callback )(T in, int channel)
 
int channels
 

Detailed Description

template<typename T = int16_t>
class audio_tools::CallbackConverterT< T >

You can provide a lambda expression to convert the data.

Template Parameters
T

Constructor & Destructor Documentation

◆ CallbackConverterT()

template<typename T = int16_t>
CallbackConverterT ( T(*)(T in, int channel)  callback,
int  channels = 2 
)
inline

Member Function Documentation

◆ convert()

template<typename T = int16_t>
size_t convert ( uint8_t src,
size_t  size 
)
inlinevirtual

Implements BaseConverter.

Member Data Documentation

◆ callback

template<typename T = int16_t>
T(* callback) (T in, int channel)
protected

◆ channels

template<typename T = int16_t>
int channels
protected

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