projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15a54f2
)
compress: Remove log statement in inner loop.
author
Andre Noll
<maan@systemlinux.org>
Tue, 2 Apr 2013 16:34:58 +0000
(16:34 +0000)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/compress_filter.c
b/compress_filter.c
index cf55985cbb6b2abc82a290a50f3d401420bdc078..b01c01a4a68824bbd747980e37c97f8fb3589cbb 100644
(file)
--- 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;