<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Hi,</div><div><br></div><div>Are you using GstAudioBaseSink? If you're not, you should be. That means implementing a ringbuffer, etc. Maybe you want to look at the code for pulsesink as a pretty complete (and complex) example.</div><div><br></div><div>Olivier</div><div><br></div><div><br></div><div>On Mon, 2018-07-23 at 14:57 +0200, Stefan Ulbrich wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">I noticed that gst-inspect returns:<div><br></div><div>Clock interaction:</div><div><div> element is supposed to provide a clock but returned NULL</div></div><div><br></div><div>Do I have to manually instantiate the clock?</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 23, 2018 at 2:53 PM Stefan Ulbrich <<a href="mailto:stefan.ulbrich@acceptto.com">stefan.ulbrich@acceptto.com</a>> wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">Thanks for your answer.<br>
I created the class with `gst-element-maker my_audio_sink audiosink`<br>
from plugins-bad.<br>
<br>
Now I tried to activate the synchronozation in gst_my_audio_sink_init()<br>
<br>
GstBaseSink *basesink = GST_BASE_SINK(myaudiosink);<br>
gst_base_sink_set_sync(basesink, TRUE);<br>
<br>
But I get only a cracking at the device (I removed the g_usleep that<br>
helped earlier)<br>
<br>
Do I have to set the rate somewhere? Do I need the `is-live` in the<br>
audio test source?<br>
<br>
<br>
On Sun, Jul 22, 2018 at 5:26 PM ShilVin <<a href="mailto:vinodkesti@yahoo.com" target="_blank">vinodkesti@yahoo.com</a>> wrote:<br>
><br>
> Which base class have you used for "myaudiosink" plugin development ??<br>
><br>
> If element is written on top of GstBaseSink, use sync property.<br>
><br>
> <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSink.html#gst-base-sink-set-sync" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSink.html#gst-base-sink-set-sync</a><br>
><br>
><br>
><br>
> --<br>
> Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br clear="all"><div><br></div></div>
<pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><pre><a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a></pre><pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></pre><pre><br></pre></blockquote><div><span><pre><pre>-- <br></pre>Olivier CrĂȘte
olivier.crete@collabora.com
</pre></span></div></body></html>