diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-04 10:34:12 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-03-19 13:48:47 +0100 |
commit | adf870c1668b9d7de738b4915820459a152fc817 (patch) | |
tree | 4667df21eeedb6254144d0be5a97d24fbfc761c6 /src/AudioCompress/compress.c | |
parent | aa9dbb827555938adfb79acade4356cc0b83ca7f (diff) |
tmp
Diffstat (limited to 'src/AudioCompress/compress.c')
-rw-r--r-- | src/AudioCompress/compress.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |