[Bug 796354] wasapi: playback noise

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 23 20:07:06 UTC 2018


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

--- Comment #12 from Christoph Reiter (lazka) <reiter.christoph at gmail.com> ---
Created attachment 372371
  --> https://bugzilla.gnome.org/attachment.cgi?id=372371&action=edit
wasapisink: Don't wait for a new buffer if the existing  one will do

In case the wasapi buffer size was larger than the data we wanted to write
out we would always wait for X new buffer and then fill it with <X data, slowly
starving the wasapi buffer without a way to recover.

Instead skip waiting for a new buffer if the existing one will do and even if
after waiting we can't write everything, at least write what we have.
Also don't loop until all data is written since the base class can handle
that for us and under normal circumstances this doesn't happen anyway.

This fixes noisy (buffer underrun) playback with the wasapisink.

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