mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
level: fix decay to be smooth
The length not having any fractional part as it was promoted to gdouble after dividing two guint64.
This commit is contained in:
parent
71044b37b6
commit
03d2f4bdec
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
|
|||
gdouble falloff;
|
||||
gdouble length; /* length of falloff time in seconds */
|
||||
|
||||
length = (gdouble) (falloff_time / GST_SECOND);
|
||||
length = (gdouble) falloff_time / (gdouble) GST_SECOND;
|
||||
falloff_dB = filter->decay_peak_falloff * length;
|
||||
falloff = pow (10, falloff_dB / -20.0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue