gst/volume/gstvolume.c: Correctly clamp float/double samples in the [-1.0,1.0] range...
authorSebastian Dröge <slomo@circular-chaos.org>
Wed, 5 Sep 2007 21:20:12 +0000 (21:20 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 5 Sep 2007 21:20:12 +0000 (21:20 +0000)
commit6d7debb0bb854c792e1dce6a6cd3a6a0c806055c
tree68b850e1dced7c73e4c74ff01708428b4b7d6bbb
parent7ea0798a9cac24d75c8d02d7e05ffbe7b94f99c8
gst/volume/gstvolume.c: Correctly clamp float/double samples in the [-1.0,1.0] range to prevent weird effects.

Original commit message from CVS:
* gst/volume/gstvolume.c: (volume_choose_func),
(volume_process_double), (volume_process_double_clamp),
(volume_process_float_clamp):
Correctly clamp float/double samples in the [-1.0,1.0] range to
prevent weird effects.
* tests/check/elements/volume.c: (GST_START_TEST), (volume_suite):
Add unit tests for all samples types that had none before.
ChangeLog
gst/volume/gstvolume.c
tests/check/elements/volume.c