24bit integer which is used for I2S sound processing. The values are represented as int32_t, but only 3 bytes are used. If you assign values which are too big, they are clipped.
More...
#include <int24_4bytes_t.h>
24bit integer which is used for I2S sound processing. The values are represented as int32_t, but only 3 bytes are used. If you assign values which are too big, they are clipped.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ int24_4bytes_t() [1/7]
◆ int24_4bytes_t() [2/7]
| int24_4bytes_t |
( |
void * | ptr | ) |
|
|
inline |
◆ int24_4bytes_t() [3/7]
| int24_4bytes_t |
( |
const int16_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [4/7]
| int24_4bytes_t |
( |
const int32_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [5/7]
| int24_4bytes_t |
( |
const int64_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [6/7]
| int24_4bytes_t |
( |
const int24_4bytes_t & | in | ) |
|
|
inline |
◆ int24_4bytes_t() [7/7]
| int24_4bytes_t |
( |
const float | in | ) |
|
|
inline |
◆ getAndScale16()
| int16_t getAndScale16 |
( |
| ) |
|
|
inline |
◆ operator float()
◆ operator int()
◆ operator int64_t()
◆ operator+=()
◆ operator-=()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ 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 |
values are clipped and shifted by 1 byte
◆ setAndScale16()
| void setAndScale16 |
( |
int16_t | i16 | ) |
|
|
inline |
◆ toFloat()
◆ toInt()
Standard Conversion to Int.
The documentation for this class was generated from the following file: