On 02/19/2017 11:19 PM, Natanael Mojica
wrote:
Hi Gstreamers !
I wrote an audiofilter element and it works
fine, but I need it under certain conditions to adjust the
number of samples in the input buffer. The ouput buffer will have the same number
of samples. I know in audiotestsrc element
is easy to adjust the number of samples. I need to add a property like this to my
custom audio filter. Is it possible ??
What is the correct way?
You can use the
GstAdapter in your filter element. You will push all incoming
buffers into the adapter and take out buffers sized as you need.
Stefan
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel