Restructure: Move compandor from common code to 'libcompandor'

This commit is contained in:
Andreas Eversberg
2017-11-16 21:13:28 +01:00
parent 083ea4edaa
commit 9776736cc4
19 changed files with 23 additions and 8 deletions

View File

@@ -32,6 +32,7 @@ test_compandor_SOURCES = dummy.x test_compandor.c
test_compandor_LDADD = \
$(COMMON_LA) \
$(top_builddir)/src/libcompandor/libcompandor.a \
$(top_builddir)/src/common/libmobile.a \
$(top_builddir)/src/common/libcommon.a \
$(ALSA_LIBS) \

View File

@@ -3,7 +3,7 @@
#include <math.h>
#include <string.h>
#include "../common/sample.h"
#include "../common/compandor.h"
#include "../libcompandor/compandor.h"
#define level2db(level) (20 * log10(level))
#define db2level(db) pow(10, (double)db / 20.0)