[Bug 796354] wasapi: playback noise

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 24 09:51:08 UTC 2018


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

Christoph Reiter (lazka) <reiter.christoph at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #372371|0                           |1
        is obsolete|                            |

--- Comment #17 from Christoph Reiter (lazka) <reiter.christoph at gmail.com> ---
Created attachment 372378
  --> https://bugzilla.gnome.org/attachment.cgi?id=372378&action=edit
wasapisink: recover from low buffer levels in shared mode

In case the wasapi buffer levels got low in shared mode we would still wait
until
more buffer is available until writing something in it, which means we could
never
catch up and 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 only works in shared mode, as in exclusive mode we have to exactly
fill the buffer and always have to wait first.

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

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