pcm/AudioCompress: fold config.h into compress.c

This commit is contained in:
Max Kellermann 2023-03-13 11:55:26 +01:00
parent 0a623122dc
commit d712c3b408
2 changed files with 7 additions and 20 deletions

View File

@ -6,9 +6,15 @@
#include <stdlib.h>
#include <string.h>
#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;

View File

@ -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