arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
int24_3bytes_t Class Reference

24bit integer which is used for I2S sound processing. The values are really using 3 bytes. It works only on little endian machines! More...

#include <Int24_3bytes_t.h>

Public Member Functions

 int24_3bytes_t ()
 
 int24_3bytes_t (const float in)
 
 int24_3bytes_t (const int16_t &in)
 
 int24_3bytes_t (const int32_t &in)
 
 int24_3bytes_t (const int64_t &in)
 
 int24_3bytes_t (void *ptr)
 
int16_t getAndScale16 ()
 
 operator int () const
 
int24_3bytes_toperator+= (int32_t value)
 
int24_3bytes_toperator-= (int32_t value)
 
int24_3bytes_toperator= (const float &other)
 
int24_3bytes_toperator= (const int24_3bytes_t &other)
 
int16_t scale16 () const
 provides value between -32767 and 32767
 
int32_t scale32 () const
 provides value between -2,147,483,647 and 2,147,483,647
 
float scaleFloat () const
 provides value between -1.0 and 1.0
 
void set (const int32_t &in)
 
void setAndScale16 (int16_t i16)
 
float toFloat () const
 convert to float
 
int toInt () const
 Standard Conversion to Int.
 

Detailed Description

24bit integer which is used for I2S sound processing. The values are really using 3 bytes. It works only on little endian machines!

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ int24_3bytes_t() [1/6]

int24_3bytes_t ( )
inline

◆ int24_3bytes_t() [2/6]

int24_3bytes_t ( void ptr)
inline

◆ int24_3bytes_t() [3/6]

int24_3bytes_t ( const int16_t in)
inline

◆ int24_3bytes_t() [4/6]

int24_3bytes_t ( const int32_t in)
inline

◆ int24_3bytes_t() [5/6]

int24_3bytes_t ( const int64_t in)
inline

◆ int24_3bytes_t() [6/6]

int24_3bytes_t ( const float  in)
inline

Member Function Documentation

◆ getAndScale16()

int16_t getAndScale16 ( )
inline

◆ operator int()

operator int ( ) const
inline

◆ operator+=()

int24_3bytes_t & operator+= ( int32_t  value)
inline

◆ operator-=()

int24_3bytes_t & operator-= ( int32_t  value)
inline

◆ operator=() [1/2]

int24_3bytes_t & operator= ( const float other)
inline

◆ operator=() [2/2]

int24_3bytes_t & operator= ( const int24_3bytes_t other)
inline

◆ scale16()

int16_t scale16 ( ) const
inline

provides value between -32767 and 32767

◆ scale32()

int32_t scale32 ( ) const
inline

provides value between -2,147,483,647 and 2,147,483,647

◆ scaleFloat()

float scaleFloat ( ) const
inline

provides value between -1.0 and 1.0

◆ set()

void set ( const int32_t in)
inline

◆ setAndScale16()

void setAndScale16 ( int16_t  i16)
inline

◆ toFloat()

float toFloat ( ) const
inline

convert to float

◆ toInt()

int toInt ( ) const
inline

Standard Conversion to Int.


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