#ifndef _FORMULA_TEMPLATE_H #define _FORMULA_TEMPLATE_H #define SAMPLE_RATE `sample_rate` #define BIT_DEPTH `bit_depth` #define IS_SIGNED `is_signed` #define CHANNELS `channels` #define SECONDS `seconds` #if BIT_DEPTH <= 8 #define SAMPLE_TYPE uint8_t #elif BIT_DEPTH >= 16 #if IS_SIGNED #define SAMPLE_TYPE int16_t #else #define SAMPLE_TYPE uint16_t #endif #endif SAMPLE_TYPE bytebeat(long double w); #endif /* _FORMULA_TEMPLATE_H */