aboutsummaryrefslogtreecommitdiffstats
path: root/src/compress.h
blob: 4fc160b7067e1ca85dab6f60860df1d3ddcf51a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* compress.h
 * interface to audio compression
 *
 * (c)2003-6 fluffy@beesbuzz.biz
 */

#ifndef COMPRESS_H
#define COMPRESS_H

/* These are copied from the AudioCompress config.h, mainly because CompressDo
 * needs GAINSHIFT defined.  The rest are here so they can be used as defaults
 * to pass to CompressCfg(). -- jat */
#define ANTICLIP 0		/* Strict clipping protection */
#define TARGET 25000		/* Target level */
#define GAINMAX 32		/* The maximum amount to amplify by */
#define GAINSHIFT 10		/* How fine-grained the gain is */
#define GAINSMOOTH 8		/* How much inertia ramping has*/
#define BUCKETS 400		/* How long of a history to store */

void CompressCfg(int monitor,
		 int anticlip,
		 int target,
		 int maxgain,
		 int smooth,
		 int buckets);

void CompressDo(void *data, unsigned int numSamples);

void CompressFree(void);

#endif