Synchronization in Audiosink

Stefan Ulbrich stefan.ulbrich at acceptto.com
Mon Jul 23 12:53:11 UTC 2018


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


More information about the gstreamer-devel mailing list