25 #ifndef SOUND_DECODERS_UTIL_H 26 #define SOUND_DECODERS_UTIL_H 35 return (
int16) CLIP<int>((int) floor(src + 0.5), -32768, 32767);
42 for (
uint32 i = 0; i < length; i++) {
47 for (
uint8 c = 0; c < channels; c++)
48 for (
uint32 i = 0, j = c; i < length; i++, j += channels)
55 #endif // SOUND_DECODERS_UTIL_H
static int16 floatToInt16(float src)
Utility templates and functions.
Low-level type definitions to handle fixed width types portably.
static void floatToInt16Interleave(int16 *dst, const float **src, uint32 length, uint8 channels)