aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/compander.h
blob: d48e284c9ea6b80989a8112c35b3cc3c65577a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
typedef struct compander {
	double	step_up;
	double	step_down;
	double	envelop_c;
	double	envelop_e;
} compander_t;

void init_compander(compander_t *state, int samplerate, double attack_ms, double recovery_ms);
void compress_audio(compander_t *state, int16_t *samples, int num);
void expand_audio(compander_t *state, int16_t *samples, int num);