1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-09 00:17:07 +00:00

ao_pipewire: give sound server more flexibility for buffers

This commit is contained in:
Thomas Weißschuh 2023-03-20 21:41:00 +00:00 committed by Philip Langdale
parent c7a8e71578
commit eafd0e5fad

View File

@ -226,7 +226,8 @@ static void on_param_changed(void *userdata, uint32_t id, const struct spa_pod *
params[0] = spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers,
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(ao->num_planes),
SPA_PARAM_BUFFERS_size, SPA_POD_Int(buffer_size),
SPA_PARAM_BUFFERS_size, SPA_POD_CHOICE_RANGE_Int(
buffer_size, 0, INT32_MAX),
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(ao->sstride));
if (!params[0]) {
MP_ERR(ao, "Could not build parameter pod\n");