pulse: improve handling of buffer attributes

Repect minreq and fragsize for playback and capture.
Try to configure tlength at 2 seconds, minreq at around 25ms. Should
greatly improve compatibility with audacious and mpv.
Count since_underrun correctly.

Fixes #278
This commit is contained in:
Wim Taymans 2020-09-11 12:50:44 +02:00
parent 6eb4b552ad
commit 8f75056689
2 changed files with 74 additions and 84 deletions

View file

@ -401,9 +401,6 @@ struct pa_mem {
void *user_data;
};
#define MAX_BUFFERS 64u
#define MASK_BUFFERS (MAX_BUFFERS-1)
struct pa_stream {
struct spa_list link;
int refcount;