From 6b966e1df730ab787014b4bd5dd08214d3722bfe Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 18 Aug 2018 19:17:11 +0200 Subject: [PATCH] compress: Warn when samples are clipped. --- compress_filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compress_filter.c b/compress_filter.c index d0132596..f98fb413 100644 --- a/compress_filter.c +++ b/compress_filter.c @@ -80,6 +80,7 @@ next_buffer: sample *= pcd->current_gain; sample >>= gain_shift; if (sample > 32767) { /* clip */ + PARA_WARNING_LOG("clip: %d\n", sample); sample = 32767; pcd->current_gain = (3 * pcd->current_gain + (1 << inertia)) / 4; -- 2.39.2