25 #include <sys/types.h>    31 #define SAMPLE_INDEX_MAX ( std::numeric_limits<sample_index_t>::max() )    43 #define SAMPLE_BITS 24    46 #define SAMPLE_STORAGE_BITS (sizeof(sample_storage_t) * 8)    49 #define SAMPLE_MIN (-(1 << (SAMPLE_BITS - 1)) + 1)    52 #define SAMPLE_MAX (+(1 << (SAMPLE_BITS - 1)) - 1)    66     return static_cast<float>(
    67         static_cast<float>(s) / static_cast<float>(1 << (
SAMPLE_BITS - 1)));
    74     return static_cast<double>(
    75         static_cast<double>(s) / static_cast<double>(1 << (
SAMPLE_BITS - 1)));
 
static float sample2float(const sample_t s)
static double sample2double(const sample_t s)
static sample_t double2sample(const double f)
static sample_t float2sample(const float f)