[Bug 748680] directsoundsink: fix sleep for buffer-time lower than 200000

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Dec 16 08:24:02 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=748680

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slomo at coaxion.net

--- Comment #8 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Thomas Roos from comment #6)
> "You could also just access that at any point after prepare() from the spec
> field of GstAudioBaseSink's ringbuffer field." -> I don't understand how to
> access this in gst_directsound_sink_write. Could you please explain!?

GST_AUDIO_BASE_SINK(asink)->ringbuffer->spec.latency_time or similar

> And I also tried your suggestion for the calculation. But decided finally
> it's best to do it like in directsoundsrc and use the latency-time in ms for
> the sleep. It's because windows Sleep() function isn't correct enough to
> gain something out of a correct calculation.

Why calculate anything at all then? ;) It would probably be better to wait for
the correct time instead of some random other value, even if Sleep() is not
very accurate.

Is there some way to get notified from directsound when the buffer is more free
again instead of using Sleep() here?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list