tweak number of buffers

In most cases we can use just 1 buffer.

The alsa-pcm-source needs at least 2 buffers so increment the min
limit.
This commit is contained in:
Wim Taymans 2023-10-13 14:00:29 +02:00
parent 9163c419df
commit 11320cf203
8 changed files with 9 additions and 9 deletions

View file

@ -1184,7 +1184,7 @@ static const struct spa_pod *get_buffers_param(struct stream *s,
param = spa_pod_builder_add_object(b,
SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers,
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(2,
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(MIN_BUFFERS,
MIN_BUFFERS, MAX_BUFFERS),
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(blocks),
SPA_PARAM_BUFFERS_size, SPA_POD_CHOICE_RANGE_Int(