pulse: improve timing

Make writable size more accurate by using the clock. mplayer uses this
to check if the clock is advancing.
Remove requested_bytes, we can use ready_bytes for the ready bytes
and use the queued bytes for playback.
Reset after a flush, wait for a new timing update.
This commit is contained in:
Wim Taymans 2020-04-15 16:19:42 +02:00
parent e73431d541
commit bf95887a02
2 changed files with 45 additions and 29 deletions

View file

@ -400,7 +400,6 @@ struct pa_stream {
size_t maxsize;
size_t maxblock;
size_t requested_bytes;
struct pa_mem *mem; /* current mem for playback */
struct spa_list free; /* free to fill */