volume: Fix unit test failure for the controlled processing functions
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Oct 2010 09:49:09 +0000 (11:49 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Oct 2010 09:49:09 +0000 (11:49 +0200)
commit4a0d4350535ecbf4024fed2989013399027a0598
tree6623d315583fe2200e1727ecc56d12b11a5b20fa
parent7c423ba4296ed603a6d5ec323772ee4bfe666938
volume: Fix unit test failure for the controlled processing functions

Going over integer arithmetic will lead to minimal rounding errors,
leading to +/-1 changes for volume==1.0. Implement the controlled
processing with floating point arithmetic, which was already done
for the C versions anyway.
gst/volume/gstvolume.c
gst/volume/gstvolumeorc.orc