Skip to content
Snippets Groups Projects
Commit f9e6d3dd authored by Thomas Guillem's avatar Thomas Guillem
Browse files

pulse: follow PulseAudio write requests

Wait from Play() if the server don't ask for more data (like every other aout
modules).

Note: tlength (target length of the buffer) is increased from 120ms to 2s.
Before this commit, the average audio delay (time_get) was around 500ms (file
caching and input dependant). If we don't increase it, the delay of the stream
will be arround 120ms (since we now follow PulseAudio write requests). Setting
tlength to 2sec will restore the previous time_get behavior: delay of arround
500ms, and always lower than 2sec (when file-caching is increased). This fixes
potential overflow.
parent 7babd896
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment