mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
gst/audioconvert/gstchannelmix.c: Normalize using absolute values.
Original commit message from CVS: * gst/audioconvert/gstchannelmix.c: (gst_audio_convert_fill_normalize): Normalize using absolute values.
This commit is contained in:
parent
d70c927c8b
commit
836ea71ea1
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-11-28 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/audioconvert/gstchannelmix.c:
|
||||||
|
(gst_audio_convert_fill_normalize):
|
||||||
|
Normalize using absolute values.
|
||||||
|
|
||||||
2004-11-28 Julien MOUTTE <julien@moutte.net>
|
2004-11-28 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -438,7 +438,7 @@ gst_audio_convert_fill_normalize (GstAudioConvert * this)
|
||||||
/* calculate sum */
|
/* calculate sum */
|
||||||
sum = 0.0;
|
sum = 0.0;
|
||||||
for (i = 0; i < this->sinkcaps.channels; i++) {
|
for (i = 0; i < this->sinkcaps.channels; i++) {
|
||||||
sum += this->matrix[i][j];
|
sum += fabs (this->matrix[i][j]);
|
||||||
}
|
}
|
||||||
if (sum > top) {
|
if (sum > top) {
|
||||||
top = sum;
|
top = sum;
|
||||||
|
|
Loading…
Reference in a new issue