aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-06-20 19:37:56 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-06-20 19:37:56 +0200
commit2ee51022f41d2877a18615cb67e49f9d9f626aaa (patch)
tree3a0c4e312a805c0695310959e91899c3e4571072 /src/test
parent86daa5a64a24312a0bd622d0c5415ef2b60c27bb (diff)
Rename 'compander' to 'compandor'
Diffstat (limited to 'src/test')
-rw-r--r--src/test/Makefile.am6
-rw-r--r--src/test/test_compandor.c (renamed from src/test/test_compander.c)6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index 0463b49..9986f68 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -1,12 +1,12 @@
AM_CPPFLAGS = -Wall -g $(all_includes)
noinst_PROGRAMS = \
- test_compander \
+ test_compandor \
test_emphasis
-test_compander_SOURCES = test_compander.c
+test_compandor_SOURCES = test_compandor.c
-test_compander_LDADD = \
+test_compandor_LDADD = \
$(COMMON_LA) \
$(top_builddir)/src/common/libcommon.a \
-lm
diff --git a/src/test/test_compander.c b/src/test/test_compandor.c
index d1661b4..74f4f28 100644
--- a/src/test/test_compander.c
+++ b/src/test/test_compandor.c
@@ -2,7 +2,7 @@
#include <stdint.h>
#include <math.h>
#include <string.h>
-#include "../common/compander.h"
+#include "../common/compandor.h"
#define level2db(level) (20 * log10(level))
#define db2level(db) pow(10, (double)db / 20.0)
@@ -66,11 +66,11 @@ static void check_level(int16_t *samples, double duration, const char *desc, dou
int main(void)
{
- compander_t cstate;
+ compandor_t cstate;
int16_t samples[SAMPLERATE * 2];
int f;
- init_compander(&cstate, SAMPLERATE, ATTACK_MS, RECOVERY_MS, UNAFFECTED);
+ init_compandor(&cstate, SAMPLERATE, ATTACK_MS, RECOVERY_MS, UNAFFECTED);
for (f = 0; f < 3; f++) {
/* -16 and -4 dB */