Updating compress.[ch] from AudioCompress

git-svn-id: https://svn.musicpd.org/mpd/trunk@4476 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2006-07-27 03:42:42 +00:00
parent 0116c27a6b
commit a48061bacf
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,8 @@
/* compress.c /* compress.c
** Compressor logic * Compressor logic
*/ *
* (c)2003-6 fluffy@beesbuzz.biz
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,13 +1,15 @@
/* compress.h /* compress.h
** interface to audio compression * interface to audio compression
*/ *
* (c)2003-6 fluffy@beesbuzz.biz
*/
#ifndef COMPRESS_H #ifndef COMPRESS_H
#define COMPRESS_H #define COMPRESS_H
/* These are copied from the AudioCompress config.h, mainly because CompressDo /* 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 * needs GAINSHIFT defined. The rest are here so they can be used as defaults
* to pass to CompressCfg. */ * to pass to CompressCfg(). -- jat */
#define ANTICLIP 0 /* Strict clipping protection */ #define ANTICLIP 0 /* Strict clipping protection */
#define TARGET 25000 /* Target level */ #define TARGET 25000 /* Target level */
#define GAINMAX 32 /* The maximum amount to amplify by */ #define GAINMAX 32 /* The maximum amount to amplify by */