mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: don't double the resampler delay
The delay of the resampler is what it reports, don't double it. See #854
This commit is contained in:
parent
cc12755c6c
commit
c4e3b5adbc
1 changed files with 1 additions and 1 deletions
|
|
@ -830,7 +830,7 @@ static int get_status(struct state *state, snd_pcm_uframes_t *delay, snd_pcm_ufr
|
|||
*target = state->threshold + state->headroom;
|
||||
|
||||
if (state->resample && state->rate_match) {
|
||||
state->delay = state->rate_match->delay * 2;
|
||||
state->delay = state->rate_match->delay;
|
||||
state->read_size = state->rate_match->size;
|
||||
/* We try to compensate for the latency introduced by rate matching
|
||||
* by moving a little closer to the device read/write pointers. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue