mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: set period size to something larger
Setting a small period size will also result in a small buffer, on some cards smaller than what we can deal with right now.
This commit is contained in:
parent
d6836d89ee
commit
4e7af5644b
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 2864e7ec75602534795240a376804007d16db213
|
||||
Subproject commit ad723e379330a39498a8c7b9a1a17e0bf79d94d0
|
||||
|
|
@ -429,7 +429,7 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
|
|||
state->frame_size = info->channels * (snd_pcm_format_physical_width(format) / 8);
|
||||
|
||||
dir = 0;
|
||||
period_size = 8;
|
||||
period_size = 1024;
|
||||
CHECK(snd_pcm_hw_params_set_period_size_near(hndl, params, &period_size, &dir), "set_period_size_near");
|
||||
CHECK(snd_pcm_hw_params_get_buffer_size_max(params, &state->buffer_frames), "get_buffer_size_max");
|
||||
CHECK(snd_pcm_hw_params_set_buffer_size_near(hndl, params, &state->buffer_frames), "set_buffer_size_near");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue