Commit a48061ba authored by J. Alexander Treuman's avatar J. Alexander Treuman

Updating compress.[ch] from AudioCompress

git-svn-id: https://svn.musicpd.org/mpd/trunk@4476 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 0116c27a
/* 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>
......
/* 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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment