Synchronization in Audiosink
Olivier CrĂȘte
olivier.crete at collabora.com
Mon Jul 23 21:51:20 UTC 2018
Hi,
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.
Olivier
On Mon, 2018-07-23 at 14:57 +0200, Stefan Ulbrich wrote:
> 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
> >
>
>
>
>
> _______________________________________________gstreamer-devel
> mailing listgstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Olivier CrĂȘte
olivier.crete at collabora.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180723/7a3f0932/attachment.html>
More information about the gstreamer-devel
mailing list