1
0
C-bytebeat-render/formula_template.h

24 lines
438 B
C
Raw Normal View History

2023-11-17 00:31:41 +05:30
#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 */