From 0c99848120f654538334491cc1abe450b831f3f0 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Mon, 25 Apr 2016 18:14:04 +0200 Subject: common code: Make preemphasis 0 dB @ 1000 Hz --- src/common/emphasis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common/emphasis.c') diff --git a/src/common/emphasis.c b/src/common/emphasis.c index cdd4458..ccacd1f 100644 --- a/src/common/emphasis.c +++ b/src/common/emphasis.c @@ -35,11 +35,11 @@ int init_emphasis(emphasis_t *state, int samplerate) return -1; } - factor = 0.95; + factor = 0.97; state->p.factor = factor; - state->p.amp = samplerate / 48000.0 * 4.0; /* mysterious 48000 */ + state->p.amp = samplerate / 6350.0; state->d.factor = factor; - state->d.amp = 1.0 / (samplerate / 48000.0 * 4.0); /* mysterious 48000 */ + state->d.amp = 1.0 / (samplerate / 6350.0); return 0; } -- cgit v1.2.3