arduino-audio-tools
Loading...
Searching...
No Matches
Bin Class Reference

Provides reduced sampling rates through binning. More...

#include <CodecOpusOgg.h>

Inheritance diagram for Bin:
BaseConverter BaseConverter

Classes

struct  BinState
struct  BinStateT

Public Member Functions

 Bin ()=default
 Bin ()=default
 Bin (int binSize, int channels, bool average, int bits_per_sample)
 Bin (int binSize, int channels, bool average, int bits_per_sample)
 ~Bin () override
 ~Bin () override
void clear ()
void clear ()
size_t convert (uint8_t *src, size_t size)
size_t convert (uint8_t *src, size_t size)
size_t convert (uint8_t *target, uint8_t *src, size_t size)
size_t convert (uint8_t *target, uint8_t *src, size_t size)
void reset ()
void reset ()
void setAverage (bool average)
void setAverage (bool average)
void setBinSize (int binSize)
void setBinSize (int binSize)
void setBits (int bits)
void setBits (int bits)
void setChannels (int channels)
void setChannels (int channels)

Protected Member Functions

bool isConfigValid ()
bool isConfigValid ()
void resetState ()
void resetState ()

Protected Attributes

bool average = false
int binSize = 1
int bits = 16
int channels = 2
BinState * state = nullptr

Detailed Description

Provides reduced sampling rates through binning.

Constructor & Destructor Documentation

◆ Bin() [1/4]

Bin ( )
default

◆ Bin() [2/4]

Bin ( int binSize,
int channels,
bool average,
int bits_per_sample )
inline

◆ ~Bin() [1/2]

~Bin ( )
inlineoverride

◆ Bin() [3/4]

Bin ( )
default

◆ Bin() [4/4]

Bin ( int binSize,
int channels,
bool average,
int bits_per_sample )
inline

◆ ~Bin() [2/2]

~Bin ( )
inlineoverride

Member Function Documentation

◆ clear() [1/2]

void clear ( )
inline

◆ clear() [2/2]

void clear ( )
inline

◆ convert() [1/4]

size_t convert ( uint8_t * src,
size_t size )
inlinevirtual

Implements BaseConverter.

◆ convert() [2/4]

size_t convert ( uint8_t * src,
size_t size )
inlinevirtual

Implements BaseConverter.

◆ convert() [3/4]

size_t convert ( uint8_t * target,
uint8_t * src,
size_t size )
inline

◆ convert() [4/4]

size_t convert ( uint8_t * target,
uint8_t * src,
size_t size )
inline

◆ isConfigValid() [1/2]

bool isConfigValid ( )
inlineprotected

◆ isConfigValid() [2/2]

bool isConfigValid ( )
inlineprotected

◆ reset() [1/2]

void reset ( )
inline

◆ reset() [2/2]

void reset ( )
inline

◆ resetState() [1/2]

void resetState ( )
inlineprotected

◆ resetState() [2/2]

void resetState ( )
inlineprotected

◆ setAverage() [1/2]

void setAverage ( bool average)
inline

◆ setAverage() [2/2]

void setAverage ( bool average)
inline

◆ setBinSize() [1/2]

void setBinSize ( int binSize)
inline

◆ setBinSize() [2/2]

void setBinSize ( int binSize)
inline

◆ setBits() [1/2]

void setBits ( int bits)
inline

◆ setBits() [2/2]

void setBits ( int bits)
inline

◆ setChannels() [1/2]

void setChannels ( int channels)
inline

◆ setChannels() [2/2]

void setChannels ( int channels)
inline

Member Data Documentation

◆ average

bool average = false
protected

◆ binSize

int binSize = 1
protected

◆ bits

int bits = 16
protected

◆ channels

int channels = 2
protected

◆ state

BinState * state = nullptr
protected

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