From adf870c1668b9d7de738b4915820459a152fc817 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 4 Nov 2013 10:34:12 +0100 Subject: tmp --- src/AudioCompress/compress.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/AudioCompress/compress.c') diff --git a/src/AudioCompress/compress.c b/src/AudioCompress/compress.c index 36cdfd8d..9346eee6 100644 --- a/src/AudioCompress/compress.c +++ b/src/AudioCompress/compress.c @@ -124,6 +124,7 @@ void Compressor_Process_int16(struct Compressor *obj, int16_t *audio, //! Determine target gain newGain = (1 << 10)*prefs->target/peakVal; + fprintf(stderr, "peak %d gain %d\n", peakVal, newGain); //! Adjust the gain with inertia from the previous gain value newGain = (curGain*((1 << prefs->smooth) - 1) + newGain) @@ -156,6 +157,7 @@ void Compressor_Process_int16(struct Compressor *obj, int16_t *audio, ap = audio; *clipped = 0; + fprintf(stderr, "count %u curgain %d newgain %d\n", count, curGain, newGain); for (i = 0; i < count; i++) { int sample; -- cgit v1.2.3