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

Provides reduced sampling rates through binning. More...

#include <BaseConverter.h>

Inheritance diagram for Bin:
BaseConverter

Public Member Functions

 Bin (int binSize, int channels, bool average, 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 setAverage (bool average)
 Enables averaging: e.g. when true it divides the sum by number of bins.
 
void setBinSize (int binSize)
 Sets the binning size: e.g. with 4 we sum 4 samples.
 
void setBits (int bits)
 
void setChannels (int channels)
 Defines the number of channels.
 

Protected Attributes

bool average = false
 
int binSize = 1
 
int bits = 16
 
int channels = 2
 

Detailed Description

Provides reduced sampling rates through binning.


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