arduino-audio-tools
Public Member Functions | Protected Attributes | List of all members
Decimate Class Reference

Provides a reduced sampling rate by taking a sample at every factor location (ingoring factor-1 samples) More...

#include <BaseConverter.h>

Inheritance diagram for Decimate:
BaseConverter

Public Member Functions

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

Protected Attributes

int bits = 16
 
int channels = 2
 
int factor = 1
 

Detailed Description

Provides a reduced sampling rate by taking a sample at every factor location (ingoring factor-1 samples)


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