add samplesperbuffer property to a custom audiofilter plugin
Stefan Sauer
ensonic at hora-obscura.de
Mon Feb 20 18:51:03 UTC 2017
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
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170220/9206a2c8/attachment.html>
More information about the gstreamer-devel
mailing list