From: Andre Noll Date: Sat, 9 Feb 2008 19:32:36 +0000 (+0100) Subject: compress.c: Simplify volume adjusting code. X-Git-Tag: v0.3.1~29 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=64e8616027238f6ef1933ccef14a2e031552db79;hp=64e8616027238f6ef1933ccef14a2e031552db79 compress.c: Simplify volume adjusting code. There's no need to distinguish the cases sample > 0 and sample < 0. Work with its absolute value instead and get rid of some similar code in the hot path. Also print a log message in case clipping occurs. ---