diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-08-16 09:48:27 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-08-16 09:48:27 +0000 |
commit | a490cffe5f2de3bac5fa836a1238c6980ef022c7 (patch) | |
tree | d05c3b36bd79abde29fca9f5e620691a9188073d /gst/audiofx/audiowsinclimit.h | |
parent | 647e2dd7c039e2d4b10d421308fafba5f72f4b59 (diff) |
gst/filter/gstlpwsinc.*: Implement latency query and only forward those samples downstream that actually contain the ...
Original commit message from CVS:
* gst/filter/gstlpwsinc.c: (gst_lpwsinc_class_init),
(gst_lpwsinc_init), (process_32), (process_64),
(lpwsinc_build_kernel), (lpwsinc_push_residue),
(lpwsinc_transform), (lpwsinc_start), (lpwsinc_query),
(lpwsinc_query_type), (lpwsinc_event), (lpwsinc_set_property):
* gst/filter/gstlpwsinc.h:
Implement latency query and only forward those samples downstream
that actually contain the data we want, i.e. drop kernel_length/2
in the beginning and append kernel_length/2 (created by convolving
the filter kernel with zeroes) to the end.
* tests/check/elements/lpwsinc.c: (GST_START_TEST):
Adjust the unit test for this slightly changed behaviour.
Diffstat (limited to 'gst/audiofx/audiowsinclimit.h')
-rw-r--r-- | gst/audiofx/audiowsinclimit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/audiofx/audiowsinclimit.h b/gst/audiofx/audiowsinclimit.h index 8a8cd475..3e09bd52 100644 --- a/gst/audiofx/audiowsinclimit.h +++ b/gst/audiofx/audiowsinclimit.h @@ -71,6 +71,10 @@ struct _GstLPWSinc { gdouble *residue; /* buffer for left-over samples from previous buffer */ gdouble *kernel; /* filter kernel */ gboolean have_kernel; + gint residue_length; + guint64 latency; + GstClockTime next_ts; + guint64 next_off; }; struct _GstLPWSincClass { |