1 /* the Music Player Daemon (MPD)
2 * Copyright (C) 2003-2007 by Warren Dukes (warren.dukes@gmail.com)
3 * This project's homepage is: http://www.musicpd.org
5 * interface to audio compression
6 * (c)2003-6 fluffy@beesbuzz.biz
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 /* These are copied from the AudioCompress config.h, mainly because CompressDo
27 * needs GAINSHIFT defined. The rest are here so they can be used as defaults
28 * to pass to CompressCfg(). -- jat */
29 #define ANTICLIP 0 /* Strict clipping protection */
30 #define TARGET 25000 /* Target level */
31 #define GAINMAX 32 /* The maximum amount to amplify by */
32 #define GAINSHIFT 10 /* How fine-grained the gain is */
33 #define GAINSMOOTH 8 /* How much inertia ramping has*/
34 #define BUCKETS 400 /* How long of a history to store */
36 void CompressCfg(int monitor,
43 void CompressDo(void *data, unsigned int numSamples);
45 void CompressFree(void);