]> git.tuebingen.mpg.de Git - paraslash.git/commit
compress.c: Simplify volume adjusting code.
authorAndre Noll <maan@systemlinux.org>
Sat, 9 Feb 2008 19:32:36 +0000 (20:32 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 9 Feb 2008 19:32:36 +0000 (20:32 +0100)
commit64e8616027238f6ef1933ccef14a2e031552db79
tree1126e1c0fa4dc1d0d707b61cf2b3e8dbe66f8059
parent8d945ebad52a7b331cad3c06a3708b26019293fb
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.
compress.c