Converts from a source to a target number with a different type.
More...
#include <AudioTypes.h>
|
| static int32_t | clip (float value, int bits) |
| | clips a value
|
| |
| template<typename T > |
| static T | clipT (float value) |
| | Clips the value to avoid any over or underflows.
|
| |
| template<typename FromT , typename ToT > |
| static ToT | convert (FromT value) |
| | Convert an int number from one type to another.
|
| |
| template<typename FromT , typename ToT > |
| static void | convertArray (FromT *from, ToT *to, int samples, float vol=1.0f) |
| | Convert an array of int types.
|
| |
| static int32_t | fromFloat (float value, int bits) |
| | Convert a float (with max 1.0) to an integer autio type.
|
| |
| template<typename T > |
| static T | fromFloatT (float value) |
| | Convert a float (with max 1.0) to an integer autio type.
|
| |
| static int64_t | maxValue (int value_bits_per_sample) |
| | provides the biggest number for the indicated number of bits
|
| |
| template<typename T > |
| static float | maxValueT () |
| | provides the biggest number for the indicated type
|
| |
| template<typename T > |
| static float | minValueT () |
| |
| static float | toFloat (int32_t value, int bits) |
| | Convert an integer integer autio type to a float (with max 1.0)
|
| |
| template<typename T > |
| static float | toFloatT (T value) |
| | Convert an integer integer autio type to a float (with max 1.0)
|
| |
Converts from a source to a target number with a different type.
◆ clip()
| static int32_t clip |
( |
float |
value, |
|
|
int |
bits |
|
) |
| |
|
inlinestatic |
◆ clipT()
template<typename T >
| static T clipT |
( |
float |
value | ) |
|
|
inlinestatic |
Clips the value to avoid any over or underflows.
◆ convert()
template<typename FromT , typename ToT >
| static ToT convert |
( |
FromT |
value | ) |
|
|
inlinestatic |
Convert an int number from one type to another.
◆ convertArray()
template<typename FromT , typename ToT >
| static void convertArray |
( |
FromT * |
from, |
|
|
ToT * |
to, |
|
|
int |
samples, |
|
|
float |
vol = 1.0f |
|
) |
| |
|
inlinestatic |
Convert an array of int types.
◆ fromFloat()
| static int32_t fromFloat |
( |
float |
value, |
|
|
int |
bits |
|
) |
| |
|
inlinestatic |
Convert a float (with max 1.0) to an integer autio type.
◆ fromFloatT()
template<typename T >
| static T fromFloatT |
( |
float |
value | ) |
|
|
inlinestatic |
Convert a float (with max 1.0) to an integer autio type.
◆ maxValue()
| static int64_t maxValue |
( |
int |
value_bits_per_sample | ) |
|
|
inlinestatic |
provides the biggest number for the indicated number of bits
◆ maxValueT()
template<typename T >
| static float maxValueT |
( |
| ) |
|
|
inlinestatic |
provides the biggest number for the indicated type
◆ minValueT()
template<typename T >
| static float minValueT |
( |
| ) |
|
|
inlinestatic |
◆ toFloat()
| static float toFloat |
( |
int32_t |
value, |
|
|
int |
bits |
|
) |
| |
|
inlinestatic |
Convert an integer integer autio type to a float (with max 1.0)
◆ toFloatT()
template<typename T >
| static float toFloatT |
( |
T |
value | ) |
|
|
inlinestatic |
Convert an integer integer autio type to a float (with max 1.0)
The documentation for this class was generated from the following file: