tweak buffers a little

JACK can handle 2 buffers at most, make the default buffer allocator
allocate 2 buffers when no params are given.
Prefer 2 buffers, it allows some form of async fill/consume
This commit is contained in:
Wim Taymans 2020-02-19 10:17:00 +01:00
parent ddcb08a98a
commit ea911f2e3f
4 changed files with 7 additions and 7 deletions

View file

@ -277,7 +277,7 @@ int pw_buffers_negotiate(struct pw_context *context, uint32_t flags,
} else {
pw_log_warn(NAME" %p: no buffers param", result);
minsize = 8192;
max_buffers = 4;
max_buffers = 2;
}
if (SPA_FLAG_IS_SET(flags, PW_BUFFERS_FLAG_NO_MEM))