<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/19/2017 11:19 PM, Natanael Mojica
wrote:<br>
</div>
<blockquote
cite="mid:CAJsppr7dBw++tL6rHHfrC0nwpHW+UbOJBnp3jWCzasde=NH3Yg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Gstreamers !<br>
<div><br>
<span id="gmail-result_box" class="gmail-" lang="en"><span
class="gmail-">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.</span> <span
class="gmail-">The ouput buffer will have the same number
of samples.</span> <span>I know in audiotestsrc element
is easy to adjust the number of samples.</span> <span
class="gmail-">I need to add a property like this to my
custom audio filter.</span> <span>Is it possible ??</span>
<span class="gmail-">What is the correct way?<br>
</span></span></div>
</div>
</blockquote>
You can use the
<meta http-equiv="content-type" content="text/html; charset=utf-8">
GstAdapter in your filter element. You will push all incoming
buffers into the adapter and take out buffers sized as you need.<br>
<br>
Stefan<br>
<br>
<blockquote
cite="mid:CAJsppr7dBw++tL6rHHfrC0nwpHW+UbOJBnp3jWCzasde=NH3Yg@mail.gmail.com"
type="cite">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>