Debian Codegraph @

src/pt2_downsample2x.h

raw symbols SCIP
1 #pragma once
2
3 #include <stdint.h>
4
5 // reserved for main audio channel mixer, PAT2SMP and MOD2WAV
6 void clearDownsample2xStates(void);
7 float downsample2x_L(float sample1, float sample2);
8 float downsample2x_R(float sample1, float sample2);
9 // --------------------------------------
10
11 // Warning: These can exceed -1.0 .. 1.0 because of undershoot/overshoot!
12 void downsample2xFloat(float *buffer, uint32_t originalLength);
13 void downsample2xDouble(double *buffer, uint32_t originalLength);
14
15 // Warning: These are slow and use normalization to prevent clipping from undershoot/overshoot!
16 bool downsample2x8Bit(int8_t *buffer, uint32_t originalLength);
17 bool downsample2x8BitU(uint8_t *buffer, uint32_t originalLength);
18 bool downsample2x16Bit(int16_t *buffer, uint32_t originalLength);
19 bool downsample2x32Bit(int32_t *buffer, uint32_t originalLength);