[pulseaudio-tickets] [Bug 103103] The client has not a chance to provide data, when absolute offset is used in a stream without prebuffering and underrun happend for long time

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 2 14:10:35 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103103

--- Comment #9 from mkid.dev at gmail.com ---
Overflow will be a result of pa_stream_write() calls to "catch" value returned
by pa_stream_writable_size(), after not providing data for 30 s. From
documentation of pa_stream_writeable_size(): "It is possible to write more than
this amount, up to the stream's buffer_attr.maxlength bytes. This is usually
not desirable, though, as it would increase stream latency to be higher than
requested (buffer_attr.tlength)" it seems that pa_stream_writable_size() should
always be less than buffer_attr.maxlength (for != -1 case).

Currently attached test program does not correctly calculate offset after long
gap (the program starts to write in offset, which was already played). It is
enough to see problem with overflow (please see attached png image), but has to
be fixed to show that my "fixes" can fix something. I will try to provide fixed
program in near future.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20171102/9b308796/attachment.html>


More information about the pulseaudio-bugs mailing list