From: Andre Noll Date: Tue, 2 Apr 2013 16:34:58 +0000 (+0000) Subject: compress: Remove log statement in inner loop. X-Git-Tag: v0.4.13~29^2~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=be761d16f78eeb062f4d268e3b80ff6d225f767f;p=paraslash.git compress: Remove log statement in inner loop. We don't want to spam the log, and killing the statement seems to make it a bit faster as well. --- diff --git a/compress_filter.c b/compress_filter.c index cf55985c..b01c01a4 100644 --- a/compress_filter.c +++ b/compress_filter.c @@ -81,8 +81,6 @@ next_buffer: adjusted_sample *= pcd->current_gain; adjusted_sample >>= gain_shift; if (adjusted_sample > 32767) { /* clip */ - PARA_NOTICE_LOG("clip: sample: %d, adjusted sample: %d\n", - sample, adjusted_sample); adjusted_sample = 32767; pcd->current_gain = (3 * pcd->current_gain + (1 << pcd->conf->inertia_arg)) / 4;