Audaspace 1.5.0
A high level audio library.
|
Defines several conversion functions between different sample formats. More...
Go to the source code of this file.
Typedefs | |
typedef void(* | convert_f) (data_t *target, data_t *source, int length) |
The function template for functions converting from one sample format to another, having the same parameter order as std::memcpy. | |
Functions | |
template<class T > | |
void | convert_copy (data_t *target, data_t *source, int length) |
The copy conversion function simply calls std::memcpy. | |
void AUD_API | convert_u8_s16 (data_t *target, data_t *source, int length) |
Converts from FORMAT_U8 to FORMAT_S16. | |
void AUD_API | convert_u8_s24_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_U8 to FORMAT_S24 big endian. | |
void AUD_API | convert_u8_s24_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_U8 to FORMAT_S24 little endian. | |
void AUD_API | convert_u8_s32 (data_t *target, data_t *source, int length) |
Converts from FORMAT_U8 to FORMAT_S32. | |
void AUD_API | convert_u8_float (data_t *target, data_t *source, int length) |
Converts from FORMAT_U8 to FORMAT_FLOAT32. | |
void AUD_API | convert_u8_double (data_t *target, data_t *source, int length) |
Converts from FORMAT_U8 to FORMAT_FLOAT64. | |
void AUD_API | convert_s16_u8 (data_t *target, data_t *source, int length) |
Converts from FORMAT_S16 to FORMAT_U8. | |
void AUD_API | convert_s16_s24_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_S16 to FORMAT_S24 big endian. | |
void AUD_API | convert_s16_s24_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_S16 to FORMAT_S24 little endian. | |
void AUD_API | convert_s16_s32 (data_t *target, data_t *source, int length) |
Converts from FORMAT_S16 to FORMAT_S32. | |
void AUD_API | convert_s16_float (data_t *target, data_t *source, int length) |
Converts from FORMAT_S16 to FORMAT_FLOAT32. | |
void AUD_API | convert_s16_double (data_t *target, data_t *source, int length) |
Converts from FORMAT_S16 to FORMAT_FLOAT64. | |
void AUD_API | convert_s24_u8_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 big endian to FORMAT_U8. | |
void AUD_API | convert_s24_u8_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 little endian to FORMAT_U8. | |
void AUD_API | convert_s24_s16_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 big endian to FORMAT_S16. | |
void AUD_API | convert_s24_s16_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 little endian to FORMAT_S16. | |
void AUD_API | convert_s24_s24 (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 to FORMAT_S24 simply using std::memcpy. | |
void AUD_API | convert_s24_s32_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 big endian to FORMAT_S32. | |
void AUD_API | convert_s24_s32_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 little endian to FORMAT_S32. | |
void AUD_API | convert_s24_float_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 big endian to FORMAT_FLOAT32. | |
void AUD_API | convert_s24_float_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 little endian to FORMAT_FLOAT32. | |
void AUD_API | convert_s24_double_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 big endian to FORMAT_FLOAT64. | |
void AUD_API | convert_s24_double_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_S24 little endian to FORMAT_FLOAT64. | |
void AUD_API | convert_s32_u8 (data_t *target, data_t *source, int length) |
Converts from FORMAT_S32 to FORMAT_U8. | |
void AUD_API | convert_s32_s16 (data_t *target, data_t *source, int length) |
Converts from FORMAT_S32 to FORMAT_S16. | |
void AUD_API | convert_s32_s24_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_S32 to FORMAT_S24 big endian. | |
void AUD_API | convert_s32_s24_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_S32 to FORMAT_S24 little endian. | |
void AUD_API | convert_s32_float (data_t *target, data_t *source, int length) |
Converts from FORMAT_S32 to FORMAT_FLOAT32. | |
void AUD_API | convert_s32_double (data_t *target, data_t *source, int length) |
Converts from FORMAT_S32 to FORMAT_FLOAT64. | |
void AUD_API | convert_float_u8 (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT32 to FORMAT_U8. | |
void AUD_API | convert_float_s16 (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT32 to FORMAT_S16. | |
void AUD_API | convert_float_s24_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT32 to FORMAT_S24 big endian. | |
void AUD_API | convert_float_s24_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT32 to FORMAT_S24 little endian. | |
void AUD_API | convert_float_s32 (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT32 to FORMAT_S32. | |
void AUD_API | convert_float_double (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT32 to FORMAT_FLOAT64. | |
void AUD_API | convert_double_u8 (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT64 to FORMAT_U8. | |
void AUD_API | convert_double_s16 (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT64 to FORMAT_S16. | |
void AUD_API | convert_double_s24_be (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT64 to FORMAT_S24 big endian. | |
void AUD_API | convert_double_s24_le (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT64 to FORMAT_S24 little endian. | |
void AUD_API | convert_double_s32 (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT64 to FORMAT_S32. | |
void AUD_API | convert_double_float (data_t *target, data_t *source, int length) |
Converts from FORMAT_FLOAT64 to FORMAT_FLOAT32. | |
Defines several conversion functions between different sample formats.
The copy conversion function simply calls std::memcpy.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT64 to FORMAT_FLOAT32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT64 to FORMAT_S16.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT64 to FORMAT_S24 big endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT64 to FORMAT_S24 little endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT64 to FORMAT_S32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT64 to FORMAT_U8.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT32 to FORMAT_FLOAT64.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT32 to FORMAT_S16.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT32 to FORMAT_S24 big endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT32 to FORMAT_S24 little endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT32 to FORMAT_S32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_FLOAT32 to FORMAT_U8.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S16 to FORMAT_FLOAT64.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S16 to FORMAT_FLOAT32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S16 to FORMAT_S24 big endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S16 to FORMAT_S24 little endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S16 to FORMAT_S32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S16 to FORMAT_U8.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 big endian to FORMAT_FLOAT64.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 little endian to FORMAT_FLOAT64.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 big endian to FORMAT_FLOAT32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 little endian to FORMAT_FLOAT32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 big endian to FORMAT_S16.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 little endian to FORMAT_S16.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 to FORMAT_S24 simply using std::memcpy.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 big endian to FORMAT_S32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 little endian to FORMAT_S32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 big endian to FORMAT_U8.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S24 little endian to FORMAT_U8.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S32 to FORMAT_FLOAT64.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S32 to FORMAT_FLOAT32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S32 to FORMAT_S16.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S32 to FORMAT_S24 big endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S32 to FORMAT_S24 little endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_S32 to FORMAT_U8.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_U8 to FORMAT_FLOAT64.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_U8 to FORMAT_FLOAT32.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_U8 to FORMAT_S16.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_U8 to FORMAT_S24 big endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |
Converts from FORMAT_U8 to FORMAT_S24 little endian.
target | The target buffer. |
source | The source buffer. |
length | The amount of samples to be converted. |