Rename 'compander' to 'compandor'

This commit is contained in:
Andreas Eversberg
2016-06-20 19:37:56 +02:00
parent 86daa5a64a
commit 2ee51022f4
14 changed files with 49 additions and 49 deletions

View File

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

View File

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