Hi,<br><br>I&#39;m trying to do audio streaming using gstreamer, and I can&#39;t seem to get it synchronized properly.<br>Is there a real problem with using alsasink (or any audio sink for that matter) with sync set to true? Or am I just not doing something right?
<br><br>Even in a simple pipeline:<br>gst-launch audiotestsrc is-live=true ! audioconvert ! &quot;audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234, channels=(int)1, rate=(int)8000&quot; ! alsasink sync=true
<br><br>The sound is choppy.<br><br>In a more complex pipeline, that does audio RTP streaming, the sound starts out alright for the first few samples, and then the clock_offset variable:<br><br>&nbsp;&nbsp;&nbsp; gst_clock_get_calibration (sink-&gt;provided_clock, &amp;cinternal, &amp;cexternal, &amp;crate_num, &amp;crate_denom);
<br>&nbsp;&nbsp;&nbsp; clock_offset = (gst_element_get_base_time (GST_ELEMENT_CAST (bsink)) - cexternal) + cinternal;<br><br>suddenly goes from 0 to a very large value, throwing the whole thing out of sync.<br><br>Any hints to what i&#39;m doing wrong? Or how it make it work ok?
<br><br>Thanks,<br>Itay.<br>