[gst-devel] Sync spectrum messages with audio being played?

Sebastian Dröge sebastian.droege at collabora.co.uk
Mon May 4 10:04:06 CEST 2009


Am Sonntag, den 03.05.2009, 12:58 -0700 schrieb EmbeddedMicro:
> What I really need is to be able to adjust the time it send the data relative
> to when the audio will be played. For example it will send it 100ns before,
> or maybe 250ns before, allowing time for the data to be transfered so it is
> synced properly.
> 
> It does not seem like this should be too hard to do, but I can't find any
> documentation on how to do it in python. Do I have to compare the
> running-time with the actual clock or some how set it up so it is called at
> even intervals?

Take a look at gst-plugins-good/tests/examples/spectrum. The
audiotestsrc/osssrc samples are syncing the messages to the clock by
installing callbacks into the clock of the pipeline (search for
wait_async )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090504/0d50141f/attachment.pgp>


More information about the gstreamer-devel mailing list