aboutsummaryrefslogtreecommitdiff
path: root/src/AudioCompress/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/AudioCompress/compress.c')
-rw-r--r--src/AudioCompress/compress.c2
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;