pw-cat: fix DSF playback again

Make the DSD buffers a little bigger because we scale down the rate.
Read an interleaved number of samples to fill one quantum.
This commit is contained in:
Wim Taymans 2022-04-28 12:32:08 +02:00
parent ebc775674a
commit c48a4bc166
5 changed files with 15 additions and 5 deletions

View file

@ -531,8 +531,8 @@ impl_node_port_enum_params(void *object, int seq,
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(2, 1, MAX_BUFFERS),
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(this->blocks),
SPA_PARAM_BUFFERS_size, SPA_POD_CHOICE_RANGE_Int(
this->quantum_limit * this->frame_size,
16 * this->frame_size,
this->quantum_limit * this->frame_size * this->frame_scale,
16 * this->frame_size * this->frame_scale,
INT32_MAX),
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(this->frame_size));
break;