diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2009-01-19 10:13:53 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2009-01-19 10:13:53 +0000 |
commit | d912a42065647cc6baa00b8eab8f6e173286033a (patch) | |
tree | 1fdeff5360e33e9f8a68a8d9cbd886c88deb7eb0 /gst/spectrum/gstspectrum.h | |
parent | b5f2a609af44fc5f610cfdc69b543b4d90adc246 (diff) |
gst/spectrum/gstspectrum.*: Implement a simple compensation algorithm for rounding errors.
Original commit message from CVS:
* gst/spectrum/gstspectrum.c: (gst_spectrum_reset_state),
(gst_spectrum_transform_ip):
* gst/spectrum/gstspectrum.h:
Implement a simple compensation algorithm for rounding errors.
This makes sure that a spectrum message is posted on the bus
every interval nanoseconds. Fixes bug #567955.
Diffstat (limited to 'gst/spectrum/gstspectrum.h')
-rw-r--r-- | gst/spectrum/gstspectrum.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/spectrum/gstspectrum.h b/gst/spectrum/gstspectrum.h index cd42360f..28cbb09a 100644 --- a/gst/spectrum/gstspectrum.h +++ b/gst/spectrum/gstspectrum.h @@ -62,6 +62,9 @@ struct _GstSpectrum gfloat *spect_magnitude; gfloat *spect_phase; GstFFTF32 *fft_ctx; + + guint64 error_per_interval; + guint64 accumulated_error; }; struct _GstSpectrumClass |