mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa-plugin: change hw-constrainy buffer-size
This commit is contained in:
parent
3450bea416
commit
5e9246e1f7
1 changed files with 2 additions and 1 deletions
|
|
@ -854,7 +854,8 @@ static int pipewire_set_hw_constraint(snd_pcm_pipewire_t *pw, int rate,
|
|||
(err = snd_pcm_ioplug_set_param_minmax(&pw->io, SND_PCM_IOPLUG_HW_RATE,
|
||||
min_rate, max_rate)) < 0 ||
|
||||
(err = snd_pcm_ioplug_set_param_minmax(&pw->io, SND_PCM_IOPLUG_HW_BUFFER_BYTES,
|
||||
16*1024, 4*1024*1024)) < 0 ||
|
||||
MIN_BUFFERS*min_period_bytes,
|
||||
MAX_BUFFERS*max_period_bytes)) < 0 ||
|
||||
(err = snd_pcm_ioplug_set_param_minmax(&pw->io,
|
||||
SND_PCM_IOPLUG_HW_PERIOD_BYTES,
|
||||
min_period_bytes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue