OSDN Git Service

revert revision 2264:23c4c0f5de40
authorClemens Ladisch <clemens@ladisch.de>
Fri, 14 Dec 2007 08:11:01 +0000 (09:11 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Fri, 14 Dec 2007 08:11:01 +0000 (09:11 +0100)
commit86456d21e07278148cc52f19cb0d2e1c451bf22d
treeee96cd45266436404c534026569c62aacdb7d88d
parent74880110c3681dbc1310fc6bfac6375178ba222f
revert revision 2264:23c4c0f5de40

The rounding done when converting to smaller sample widths fails for
saturated positive samples; in this case, the sample value overflows and
becomes negative.  We are better off without rounding, even if we then
have quantization noise (of at most half the resolution of the least
significant bit).

ALSA bug#3360; Debian #437827; GNOME #436192; LP #116990; Mandriva #33908
src/pcm/plugin_ops.h