Increase max buffer size

This commit is contained in:
Wim Taymans 2019-10-24 15:26:59 +02:00
parent 81fc595e3d
commit af73585948
12 changed files with 38 additions and 26 deletions

View file

@ -72,8 +72,9 @@ static void reset_props(struct props *props)
props->volume = DEFAULT_VOLUME;
}
#define MAX_BUFFERS 16
#define MAX_PORTS 1
#define MAX_SAMPLES 8192
#define MAX_BUFFERS 16
#define MAX_PORTS 1
struct buffer {
uint32_t id;
@ -600,9 +601,9 @@ impl_node_port_enum_params(void *object, int seq,
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(1, 1, MAX_BUFFERS),
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(1),
SPA_PARAM_BUFFERS_size, SPA_POD_CHOICE_RANGE_Int(
1024 * port->bpf,
MAX_SAMPLES * port->bpf,
16 * port->bpf,
INT32_MAX / port->bpf),
INT32_MAX),
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(0),
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16));
break;