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

Provides reduced sampling rates. More...

#include <BaseConverter.h>

Inheritance diagram for DecimateT< T >:
BaseConverter

Public Member Functions

 DecimateT (int factor, int channels)
 
size_t convert (uint8_t *src, size_t size)
 
size_t convert (uint8_t *target, uint8_t *src, size_t size)
 
 operator bool ()
 
void setChannels (int channels)
 Defines the number of channels.
 
void setFactor (int factor)
 Sets the factor: e.g. with 4 we keep every fourth sample.
 

Protected Attributes

int channels = 2
 
uint16_t count
 
int factor = 1
 

Detailed Description

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

Provides reduced sampling rates.


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