arduino-audio-tools
Public Member Functions | Protected Attributes | List of all members
BinT< T > Class Template Reference

Provides reduced sampling rates through binning: typed implementation. More...

#include <BaseConverter.h>

Inheritance diagram for BinT< T >:
BaseConverter

Public Member Functions

 BinT (int binSize, int channels, bool average)
 
size_t convert (uint8_t *src, size_t size)
 
size_t convert (uint8_t *target, uint8_t *src, size_t size)
 
 operator bool ()
 
void setAverage (bool average)
 Enables averaging: e.g. when true it divides the sum by number of bins.
 
void setBinSize (int binSize)
 Sets the bins: e.g. with 4 we sum 4 sample.
 
void setChannels (int channels)
 Defines the number of channels.
 

Protected Attributes

bool average = true
 
int binSize = 1
 
int channels = 2
 
uint16_t count = 0
 

Detailed Description

template<typename T>
class audio_tools::BinT< T >

Provides reduced sampling rates through binning: typed implementation.


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