Synchronization in Audiosink

Stefan Ulbrich stefan.ulbrich at acceptto.com
Mon Jul 23 12:57:06 UTC 2018


I noticed that gst-inspect returns:

Clock interaction:
     element is supposed to provide a clock but returned NULL

Do I have to manually instantiate the clock?

On Mon, Jul 23, 2018 at 2:53 PM Stefan Ulbrich <stefan.ulbrich at acceptto.com>
wrote:

> Thanks for your answer.
> I created the class with `gst-element-maker my_audio_sink audiosink`
> from plugins-bad.
>
> Now I tried to activate the synchronozation in gst_my_audio_sink_init()
>
>   GstBaseSink *basesink = GST_BASE_SINK(myaudiosink);
>   gst_base_sink_set_sync(basesink, TRUE);
>
> But I get only a cracking at the device (I removed the g_usleep that
> helped earlier)
>
> Do I have to set the rate somewhere? Do I need the `is-live` in the
> audio test source?
>
>
> On Sun, Jul 22, 2018 at 5:26 PM ShilVin <vinodkesti at yahoo.com> wrote:
> >
> > Which base class have you used for "myaudiosink" plugin development ??
> >
> > If element is written on top of GstBaseSink, use sync property.
> >
> >
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSink.html#gst-base-sink-set-sync
> >
> >
> >
> > --
> > Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> > _______________________________________________
> > 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/20180723/d84fd526/attachment.html>


More information about the gstreamer-devel mailing list