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.
Loading
Please register or sign in to comment