add samplesperbuffer property to a custom audiofilter plugin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

add samplesperbuffer property to a custom audiofilter plugin

Natanael Mojica
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?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: add samplesperbuffer property to a custom audiofilter plugin

Stefan Sauer
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: add samplesperbuffer property to a custom audiofilter plugin

Natanael Mojica
In reply to this post by Natanael Mojica
Thanks Stefan I Will  try

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Loading...