From d712c3b408bee79207a73cd4c8dfcb5ab41b4cad Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Mar 2023 11:55:26 +0100 Subject: [PATCH] pcm/AudioCompress: fold config.h into compress.c --- src/pcm/AudioCompress/compress.c | 8 +++++++- src/pcm/AudioCompress/config.h | 19 ------------------- 2 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 src/pcm/AudioCompress/config.h diff --git a/src/pcm/AudioCompress/compress.c b/src/pcm/AudioCompress/compress.c index 9094bbe80..e46e4a9a7 100644 --- a/src/pcm/AudioCompress/compress.c +++ b/src/pcm/AudioCompress/compress.c @@ -6,9 +6,15 @@ #include #include -#include "config.h" #include "compress.h" +/*** Default configuration stuff ***/ +#define TARGET 16384 /*!< Target level (on a scale of 0-32767) */ + +#define GAINMAX 32 /*!< The maximum amount to amplify by */ +#define GAINSMOOTH 8 /*!< How much inertia ramping has*/ +#define BUCKETS 400 /*!< How long of a history to use by default */ + struct Compressor { //! The compressor's preferences struct CompressorConfig prefs; diff --git a/src/pcm/AudioCompress/config.h b/src/pcm/AudioCompress/config.h deleted file mode 100644 index 25615ee68..000000000 --- a/src/pcm/AudioCompress/config.h +++ /dev/null @@ -1,19 +0,0 @@ -/* config.h -** Default values for the configuration, and also a few random debug things -*/ - -#ifndef AC_CONFIG_H -#define AC_CONFIG_H - -/*** Version information ***/ -#define ACVERSION "2.0" - -/*** Default configuration stuff ***/ -#define TARGET 16384 /*!< Target level (on a scale of 0-32767) */ - -#define GAINMAX 32 /*!< The maximum amount to amplify by */ -#define GAINSMOOTH 8 /*!< How much inertia ramping has*/ -#define BUCKETS 400 /*!< How long of a history to use by default */ - -#endif -