Sound Open Firmware
Loading...
Searching...
No Matches
format_generic.h File Reference

Generic audio sample saturation helpers. More...

Include dependency graph for format_generic.h:

Go to the source code of this file.

Functions

static int32_t sat_int32 (int64_t x)
 Saturate a 64-bit integer to signed 32-bit integer range.
 
static int32_t sat_int24 (int32_t x)
 Saturate a 32-bit integer to signed 24-bit integer range.
 
static int16_t sat_int16 (int32_t x)
 Saturate a 32-bit integer to signed 16-bit integer range.
 
static int8_t sat_int8 (int32_t x)
 Saturate a 32-bit integer to signed 8-bit integer range.
 

Detailed Description

Generic audio sample saturation helpers.