compress: Remove log statement in inner loop.
authorAndre Noll <maan@systemlinux.org>
Tue, 2 Apr 2013 16:34:58 +0000 (16:34 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 21 Apr 2013 13:48:02 +0000 (15:48 +0200)
We don't want to spam the log, and killing the statement seems to
make it a bit faster as well.

compress_filter.c

index cf55985..b01c01a 100644 (file)
@@ -81,8 +81,6 @@ next_buffer:
                adjusted_sample *= pcd->current_gain;
                adjusted_sample >>= gain_shift;
                if (adjusted_sample > 32767) { /* clip */
                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;
                        adjusted_sample = 32767;
                        pcd->current_gain = (3 * pcd->current_gain +
                                (1 << pcd->conf->inertia_arg)) / 4;