[Bug 773681] directsoundsink: High cpu usage on windows x86

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 3 06:36:05 UTC 2017


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

--- Comment #19 from Dustin Spicuzza <dustin at virtualroadside.com> ---
Well, in the case of the log message I posted above, length is 1764 and
dwFreeBufferSize is 1764. The first part of sleep calculation is (length -
dwFreeBufferSize), which of course is zero.

If you change the `if (length >= dwFreeBufferSize)` to length >
dwFreeBufferSize, the CPU usage goes down to normal. However, I think I would
still recommend setting a minimum wait time (5ms?).

-- 
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