mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: scale buffer with frame_scale
Make the alsa buffer a little larger when we scaled the samplerate, like for DSD. This allows us to go all the way up to the quantum limit.
This commit is contained in:
parent
c48a4bc166
commit
b7845bd702
1 changed files with 1 additions and 1 deletions
|
|
@ -1483,7 +1483,7 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
|
|||
} else {
|
||||
CHECK(snd_pcm_hw_params_get_buffer_size_max(params, &state->buffer_frames), "get_buffer_size_max");
|
||||
|
||||
state->buffer_frames = SPA_MIN(state->buffer_frames, state->quantum_limit * 4);
|
||||
state->buffer_frames = SPA_MIN(state->buffer_frames, state->quantum_limit * 4)* state->frame_scale;
|
||||
|
||||
CHECK(snd_pcm_hw_params_set_buffer_size_min(hndl, params, &state->buffer_frames), "set_buffer_size_min");
|
||||
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